Skip to main content

Function: unsubscribePushNotifications()

unsubscribePushNotifications(__namedParameters): Promise<boolean>

Defined in: usePushNotifications.ts:145

Removes this browser's subscription, from the app first and then from the browser, so a failure leaves both still subscribed. Works outside React: call it before signing out, so a shared browser stops receiving the previous account's pushes. Resolves whether there was one to remove.

Parameters​

ParameterType
__namedParameters{ onUnsubscribe: (subscription) => Promise<void>; }
__namedParameters.onUnsubscribe(subscription) => Promise<void>

Returns​

Promise<boolean>