Disabling web subscription #187
-
Hey 👋 If I've setup a PWA to receive push notifications, I want to disable that when a user logs out of the web-app; the opposite of subscribe() Am I thinking about this wrong? It doesn't seem to be an option. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @pjlsergeant we don't have a way to pause subscriptions, but our new endpoints let you discard a subscription, and you can then add them back again. While they are discarded, we don't deliver to them. Are you logging out in the backend? If so, it'd be easier for you to resubscribe. I can send the curl/openapi snippet if you'd like to try it out. |
Beta Was this translation helpful? Give feedback.
Hey Hana (@unamashana), yes, that sounds perfect!