How to avoid or stop receiving Push Notifications if the user clear cookies?

Hi there,

I'd like to know how to stop sending/receiving Push Notifications when the user clear cookies in Safari, therefore the session / authentication cookie.

The server will never learn the cookie was deleted and it will keep sending Push Notifications to the web client although the user will be logged out.

Any thoughts?

Thank you.

Once the user has opted out of Push Notification your sending scripts will get a list of device tokens no longer opted in which you will have to remove from your side as well on receipt of the error report. Cookies are not used. The user has full control of the APNS process. The server is well aware once implemented correctly.

https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW1

Hi @MobileTen,

I meant not the user case where the user opted out, but the case when the user keeps opted in and is logged out by clearing the session cookie.

I expect the user to stop receiving notifications while logged out without user intervention and resume receiving notifications when logged in. With a manual logout is easy, as the server is aware.

How to avoid or stop receiving Push Notifications if the user clear cookies?
 
 
Q