Skip to content

Function: getVoIPPushToken() ​

ts
function getVoIPPushToken(): VoIPPushToken | null;

Defined in: Calls.ts:890

Gets the current VoIP push token and its type.

The token should be sent to your backend along with the token type so the server knows how to deliver incoming call pushes.

Returns ​

VoIPPushToken | null

The VoIP push token bundled with its type, or null if not yet registered.

Example ​

typescript
const voip = getVoIPPushToken();
if (voip) {
  await sendTokenToBackend(voip.token, voip.type);
}

See ​