How can you manage push notifications when a user uses multiple accounts on the same browser? What can you do if multiple users use the same device / browser?
Articles about web push notifications
How can you associate a push subscription to a specific user? How can you implement log-in and log-out for web push notifications?
Sometimes you just need to send the same notification to all users that have subscribed to your website notifications. Let's see how to achieve that.
Sometimes it is useful to send a notification from your website to multiple users. Let's see how to achieve that.
In this article we see a frequent use case for notifications, where you want to send a notification only to the users in your database that match a specific condition.
I've seen this question several times, so I would like to give a definitive answer.
Would you like to send web push notifications only to people located in a given place? If you use Pushpad you can implement that in different ways.
What if you want to send a web push notification only to 10% of your users? This can be useful for example for testing and for measuring CTR for that notification before sending it to all your users. There are many ways to achieve that, but in this tutorial we will show a simple method with tags.
There are various reasons that can prevent a web push notification from being delivered. One of them is the presence of subscriptions that are no longer in use: if a device / browser is no longer used, then its subscription to web push notifications is still valid, but the notification won't be delivered. That legacy subscription will eventually expire and will be removed automatically (by Pushpad), but this can take several months, depending on the browser push service (e.g. Google FCM, Mozilla autopush, etc.).
I would like to reply to an interesting [question](https://stackoverflow.com/questions/44714507/how-to-send-single-user-targeted-notification-with-web-push-api) that has been posted on StackOverflow. I reply here because the original question has been deleted.
We have made a change to Pushpad in order to make its use more intuitive.