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
- registerVoIPPush — must be called once before any token will be available.
- getVoIPPushToken — non-hook accessor for the same token.
- addVoIPPushTokenUpdatedListener — the underlying subscription.