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