Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Firebase Cloud Messaging support all major browsers or just chrome?

I have looked into the documentation of FCM and it mentions that it cross platform. Anyhow FCM for Web documentation talks about Chrome. I want to check whether FCM supports messaging to all major web browsers including IE, Safari and Firefox?

like image 918
Mahmud Ahmad Avatar asked Jul 01 '16 18:07

Mahmud Ahmad


People also ask

Which browser is supported by firebase console?

The Firebase console can be accessed from recent versions of popular desktop browsers such as Chrome, Firefox, Safari and Edge. Mobile browsers are currently not fully supported.

Does Safari support firebase messaging?

Safari still does not support Web Push API, thus Firebase Cloud Messaging service.

How does firebase cloud messaging works?

The Firebase Cloud Messaging Data API lets you retrieve information that can help you understand the outcomes of message requests targeted to Android applications. The API provides aggregated data across all data collection-enabled Android devices in a project.


1 Answers

The link you mentioned is talking about FCM support for Chrome apps and extensions only, it's a different story for the web.

FCM supports Web Push Protocol, according to this article: https://developers.google.com/web/updates/2016/07/web-push-interop-wins

Now that FCM supports Web Push Protocol you can leave the endpoint intact and use the URL as a Web Push Protocol endpoint. (This brings it in line with Firefox and hopefully every other future browser.)

You no longer need a Firebase project, a gcm_sender_id, or an Authorization header.

Both Chrome and Firefox use the Push API for push notifications and Firefox already supports Web Push Protocol, which means by updating FCM server-side code, it will work for both Chrome and Firefox.

Google really needs to update their docs as Enable Push Notifications for your Web App is out of date.

It won't work with IE and Safari as they don't support the Push API at all.

like image 54
Liuting Avatar answered Nov 02 '22 06:11

Liuting