Can I use a push service other than Google's GCM when using the new Push API with service workers?
相关问题
- PWAs on iOS 12 no longer shares Service Worker cac
- Are promises lazily evaluated?
- start_url does not respond with a 200 when offline
- Adding a new header to a Request, while preserving
- unable to post message to service worker because c
相关文章
- Checking for service worker updates in a single pa
- Progressive web app(PWA) vs Electron vs Browser ex
- Is there a way to add badge notifications using pr
- Uncaught (in promise) DOMException: Quota exceeded
- Make Web push notification work using webview in a
- Manifest start_url is not cached by a Service Work
- Why does fetch request have to be cloned in servic
- Media Notifications using the Media Session Web AP
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.