Skip to content

Function: useVoIPPushToken()

ts
function useVoIPPushToken(): VoIPPushToken | null;

Defined in: hooks/useVoIPPushToken.ts:23

Hook that returns the current VoIP push token and subscribes to updates.

Reads the initial token synchronously and re-renders whenever the native onVoIPPushTokenUpdated event fires (e.g. when the OS provides a new token or invalidates the existing one).

On iOS this returns an APNs VoIP token; on Android it returns an FCM token.

Returns

VoIPPushToken | null

The current token, or null if not yet available.

See

Released under the MIT License.