Deregister a Mobile Device for Push Notifications
You can deregister a device that was registered for Catalyst iOS push notifications by passing the required parameters to the deregisterNotification() method as shown below.
copytry{ var response = await ZCatalystApp.getInstance() .deregisterNotification( deviceToken: deviceToken, notificationAppId: "1624000000074620", isTestDevice: false); print(response?.responseJson); } on ZCatalystException catch(ex) { print("Failed to deregister device: $ex"); }
Parameters:
-
deviceToken: The device token obtained from FCM for you Android app, or the device token obtained after registering the device for remote push notifications with APNS for your iOS app.
-
notificationAppID: For Android, this is the app ID generated by Catalyst for your Android app in Push Notifications, which can be found in the Android section of Push Notifications in your Catalyst console. For iOS, this is obtained from the AppConfigurationDevelopment.plist/ AppConfigurationProduction.plist file generated by Catalyst for your app when you registered your iOS app in Catalyst.
-
testDevice: The value is set to true for test devices, and set to false for production devices.
Last Updated 2024-11-12 01:42:48 +0530 +0530
Yes
No
Send your feedback to us