Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we do web push notifications in chrome without using GCM/FCM?

I am trying to do web push notifications in Chrome without using GCM/FCM. Is it possible? I'm not able to find examples on how to use a different push service.

like image 315
godot101 Avatar asked Jan 24 '17 11:01

godot101


People also ask

Can I send push notifications without FCM?

How it is possible? It's definitely possible -- you don't have to use Firebase to deliver push notifications.

What is difference between FCM and GCM?

FCM is a cloud platform that provides messages and push notifications for operating systems- ios and Android, and websites as well. Google Cloud Messaging is a messaging service that enables the message transfer from server to clients apps.

Why you use FCM notification instead of APNs?

APNs and WNS do not support multiple platforms. They are designed to work with their native platforms. But, FCM supports multiple platforms such as Android and iOS and even supports Chrome web apps.


2 Answers

No, it is not possible to use another push service.

In Firefox, you can do it by modifying the dom.push.serverURL preference, but obviously you'd need privileged access to alter the value of the pref.

There are third-party services that you can use to implement push notifications, but they will use the Web Push API under the hood (so Autopush on Firefox, GCM/FCM on Chrome).

like image 73
Marco Castelluccio Avatar answered Oct 05 '22 20:10

Marco Castelluccio


Yes. Using VAPID spec and service worker you can use web push notifications without FCM/GCM. For more information please look into below google docs.

https://developers.google.com/web/fundamentals/engage-and-retain/push-notifications/how-push-works

like image 43
Mathi kumar Avatar answered Oct 05 '22 21:10

Mathi kumar