Function: registerVoIPPush()
ts
function registerVoIPPush(): void;Defined in: Calls.ts:864
Registers for VoIP push notifications.
Call this early in your app lifecycle to receive VoIP push notifications for incoming calls. Once registered, the device token will be available via getVoIPPushToken and token updates will be emitted via addVoIPPushTokenUpdatedListener.
Returns
void
Example
typescript
// Register early in app initialization
registerVoIPPush();
// Listen for token updates
addVoIPPushTokenUpdatedListener((event) => {
if (event.token) {
// Send token to your backend
sendTokenToBackend(event.token);
}
});See
- getVoIPPushToken — read the current token synchronously after registration.
- useVoIPPushToken — React hook that reads the token and subscribes to updates.
- addVoIPPushTokenUpdatedListener — non-React subscription to token updates.