Reputation: 8874
Can I use a push service other than Google's GCM when using the new Push API with service workers?
Upvotes: 5
Views: 1401
Reputation: 1029
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
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.
Upvotes: 4