We are using the push notification extension with firebase cloud messaging. Like the example code, we have a service worker to enable notifications whilst the tab is the background and the push notifications stop when the user logs out of our app.
However, there may be a time where the users subscription expires whilst they are still logged into our app and we don’t want them to receive any more push notifications. What’s the best way to handle this?
Should we just deactivate that user within cometchat to prevent them receiving any more push notifications? However, whilst testing deactivated users still receive push notifications from groups.