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.
copy
ZCatalystApp.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 2025-08-28 12:01:44 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit