Deregister a Mobile Device for Push Notifications

You can deregister a device that was registered for Catalyst Android push notifications by passing the required parameters to the deregisterNotification() method as shown below.

    
copy
val app = ZCatalystApp.getInstance() app.deregisterNotification (device_token,"bundleID", "appID", test_device_boolean, { Log.i("Unregister","App unregistered successfully"); }, { Log.i("Unregister","App unregisteration failed"); })

Parameters:

  • device_token: The device token obtained from FCM for your app.

  • bundleID: The Android app’s bundle ID that you configured while registering the app with Catalyst as well as in Firebase.

  • appID: The app ID generated by Catalyst for your app in Push Notifications. You can find this in the Android section of Push Notifications in your Catalyst console.

  • test_device_boolean: The value is set to true for test devices, and set to false for production devices

Last Updated 2024-12-11 17:48:21 +0530 +0530