Re:Firefox Can Now Get Push Notifications from Your Favorite...
by nevi-me on Wednesday January 27, 2016 @06:01AM
(#10979409)
I've been using Push Notifications on my site for a few months now [0]. Having gone through the detail on this announcement, I'm a bit confused and would like some clarity.
In Chrome & Chrome for Android, I have to use GCM to let the device know that there's a new message. The service worker then pings the server to find what the notifications are, before displaying them. Firefox supports sending payloads.
How can I distinguish between endpoints registered from FF, so I can send payloads directly without going via GCM?
Thanks
[0] https://movinggauteng.co.za. Users need to log in via social media, and then grant permissions for notifications by clicking on the crossed out bell at the top of the page.
In Chrome & Chrome for Android, I have to use GCM to let the device know that there's a new message. The service worker then pings the server to find what the notifications are, before displaying them. Firefox supports sending payloads.
How can I distinguish between endpoints registered from FF, so I can send payloads directly without going via GCM?
Thanks
[0] https://movinggauteng.co.za. Users need to log in via social media, and then grant permissions for notifications by clicking on the crossed out bell at the top of the page.