Can I use a push service other than Google's GCM when using the new Push API with service workers?
Asked
Active
Viewed 1,370 times
5

sideshowbarker
- 81,827
- 26
- 193
- 197

owencm
- 8,384
- 6
- 38
- 54
-
No, each browser uses its manufacturer's web service. If you don't want to interact directly with GCM you can use services like [this](https://pushpad.xyz) (that will interact with GCM on your behalf). – collimarco Mar 25 '16 at 16:55
1 Answers
4
Today, Chrome is the only browser that supports the standard push API so right now the short answer is No.
A longer answer involves doing different things for different browsers
- Safari offers desktop notifications via APNS and a proprietary API
- Firefox is shipping support for push notifications soon and presumably will use a different push server than GCM.
So to summarize, it seems that different combinations of Browser/OS will require different push servers. In the future there is an IETF draft (https://datatracker.ietf.org/wg/webpush/documents/) that should mitigate this. There are also companies working on abstracting these problems for a fee. Just search for web push notifications to get a few of them.

Miguel Garcia
- 1,029
- 5
- 14
-
2Firefox nightly now has support for push and it supports the web push protocol. Hopefully Chrome will move over to supporting the web push protocol at a later date. – Matt Gaunt Jan 05 '16 at 11:35