logoutPush static method
Logout from push notifications.
Removes the external user ID from the push subscription. Call this when the user logs out to unlink the device from their account.
Example:
Future<void> doLogout() async {
await Notify.logoutPush();
Notify.stopPolling();
await Auth.logout();
}
Implementation
static Future<void> logoutPush() async {
await manager.logoutPush();
}