To remove all device tokens for a specific platform, such as Android or iOS, from your application, you will need to unregister each device individually using the /unregisterDevice
API method.
Here's how you can typically approach this:
- Retrieve Device Tokens: First, you'll need to obtain a list of all device tokens currently registered for the specific platform (e.g., all Android tokens) within your application. This list is usually managed and stored on your backend systems.
-
Iterate and Unregister: For each device token in your list, make an API call to the
/unregisterDevice
endpoint. This will remove the device's registration from Pushwoosh.
You can find detailed instructions and parameters for the /unregisterDevice
method in our official API documentation:
* Pushwoosh Device API - /unregisterDevice
Important Note: This process involves programmatically unregistering each device. For managing device registrations, using the API is the standard and recommended method as it provides you with direct control. If you encounter issues with large-scale removals, please consult the documentation or contact support for guidance.
Comments
0 comments
Please sign in to leave a comment.