Firebase notification does not work in incognito chron mode

When I open the Chrome browser in incognito mode, then the worker’s work file is executed, then an error message is issued.

Getting the following error

messaging/permission-blocked"
message:"Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked)."
stack:"FirebaseError: Messaging: The required permissions were not granted and blocked instead. (messaging/permission-blocked).↵ at d (https://www.gstatic.com/firebasejs/3.6.2/firebase-messaging.js:30:200)"
+4
source share
2 answers

Chrome notifications using Firebase Cloud Messaging are turned off incognito.

Interestingly, the best link I can find is in the OneSignal documentation: https://documentation.onesignal.com/docs/web-push-setup

+6
source

To a large extent, this is browser dependent.

Chrome , . , push-?

Firefox , , Firefox - , , , API , , , .

+5

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


All Articles