Can I use the new Push Notifications support in Chrome without GCM?

Can I use a push service other than Google GCM when using the new Push API with service workers?

+5
source share
1 answer

Today, Chrome is the only browser that supports the standard push API, so the short answer now is No.

A longer answer involves performing different actions for different browsers

  • Safari offers desktop notifications through APNS and its own API
  • Firefox quickly supports push notification support and is expected to use a different push server than GCM.

So, to summarize, it seems that different browser / OS combinations will require different push servers. In the future, there is an IETF project ( https://datatracker.ietf.org/wg/webpush/documents/ ) that should mitigate this. There are also companies involved in abstracting these issues for a fee. Just search the web for notifications to get a few of them.

+4
source

Source: https://habr.com/ru/post/1236478/


All Articles