How to implement firefox Web-extensions Push notifications
Asked Answered
F

0

6

Forgive me if you think its an obvious one, but I didn't find any relevant(non-obsolete) material on the same.

So, I have a chrome extension out there (Zoho Mail Tracker) which as the name suggests is an email tracker for the Zoho mail client.

It relies on the GCM notifications for giving information to the user. My question is what should I use as GCM won't work on Firefox.

I tried reading a lot and seems like most of the stuff is either obsolete or deprecated. Should I resort to long polling(seems really a bad idea), or websockets?

Or should I simply wait until its properly implemented in Firefox?

Flyboat answered 26/4, 2017 at 8:21 Comment(4)
Not a full answer, but chrome.gcm API is marked as "unlikely" in the WebExtensions compatibility roadmap. So waiting won't take you far.Archiepiscopal
Any suggestions on how should I go ahead then?Flyboat
Relevant, close to a duplicate: https://mcmap.net/q/1656072/-gcm-equivalent-for-firefox/… It seems that currently there's no support for Mozilla-provided push services; you'll need to roll your own.Archiepiscopal
bugzilla.mozilla.org/show_bug.cgi?id=1364639 states chrome.gcm won't be implemented.Sciurine

© 2022 - 2024 — McMap. All rights reserved.