Deregister a Mobile Device for Push Notifications

You can deregister a device that was registered for Catalyst iOS push notifications using the code snippet given below. You will need to pass the device token obtained after registering the device for remote push notifications with APNS in step 3 as mentioned here, and the notificationAppID from the Catalyst iOS properties file to the deregisterNotification() method.

    
copy
ZCatalystApp.shared.deregisterNotification(token: e5fr218a911sa21, appID: 1234567, testDevice: true) { error in if let error = error { return print("Error : \( error )") } print("UnRegistered successfully") }

Parameters:

  • 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

Last Updated 2023-11-01 21:22:06 +0530 +0530