safwanrahman / django-webpush

Web Push Notification Package for Django
GNU General Public License v3.0
362 stars 103 forks source link

Duplicate notifications #100

Open jgardounis opened 3 years ago

jgardounis commented 3 years ago

When a subscription is connected to more than one users (for example two users are using the same pc intermediately) , the notification shows for both.

This way when we have users A and B subscribed to the same browser, if I am logged as user A and there is a notification for user B, it pops up for user A as well.

How to fine tune the send_user_notification so that the notification shows only if the logged in user matches the recipient of the notification?