Dhara
Dhara

Reputation: 312

Not getting firebase access token

Firebase messaging error in http server, but works well in https server.

; FirebaseError: Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked).

Do we need https server to send the notification from the server?

Upvotes: 0

Views: 1617

Answers (1)

niclas_4
niclas_4

Reputation: 3674

The Firebase Cloud Messaging SDK is supported only in pages served over HTTPS. This is due to its use of service workers, which are available only on HTTPS sites.

More Information here

Good luck!

Upvotes: 1

Related Questions