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.
copyZCatalystApp.shared.deregisterNotification(token: e5********21, appID: 1234567, testDevice: true) { error in if let error = error { return print("Error : \( error )") } print("UnRegistered successfully") }
Parameters:
-
token: token: Device token obtained after registering the device for remote push notifications with APNS.
-
appID: The notificationAppID 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
Skip
Submit