Skip to main content
Published: February 07 2018, 2:02:00 AMUpdated: November 28 2020, 9:09:18 PM

I am a developer and some of my users are no longer using my app. They were subscribed to platform notifications and the notifications are still being sent to my app. How do I unsubscribe to these ? Will the notifications be sent even if the token has expired?

If the token has expired, the notifications are automatically disabled and the developer doesn't have to do anything. 

In case the tokens are still active, you can unsubscribe to Platform Notifications by setting the ApplicationEnable to Disable in SetNotificationPreferences call.

Here's a sample request to disable notifications for a User Token:

<?xml version="1.0" encoding="utf-8"?>
<SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>ABC...123</eBayAuthToken>
</RequesterCredentials>
<Version>697</Version>
     <ApplicationDeliveryPreferences>
          <ApplicationEnable>Disable</ApplicationEnable>
          <DeviceType>Platform</DeviceType>
     </ApplicationDeliveryPreferences>
</SetNotificationPreferencesRequest>

This will disable all notifications to the application. But the user preferences are preserved.


 REF: How to subscribe to Platform Notifications

 

How well did this answer your question?
Answers others found helpful