Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase notification are not working in chrome incognito mode

When I open the chrome browser in incognito mode then service worker file execute then get an error.

Getting 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)"
like image 328
Rohit Shelhalkar Avatar asked Jan 21 '17 09:01

Rohit Shelhalkar


People also ask

Can you allow notifications in incognito mode?

If you're browsing in Incognito mode, you won't get notifications. To allow or block notifications in your Chrome browser, Go to your Chrome browser. At the top right corner, click More > Settings or if you're a Mac user, from the menu bar at the top, select Chrome > Preferences.

Why incognito mode is not working in Chrome?

If incognito mode is not working, open Chrome and click on the three-dot menu followed by Settings. Next, click on Reset and clean up followed by Restore settings to their original defaults. Click Reset settings and then try to enter the incognito mode to see if it works.

How do I enable incognito mode in Chrome registry?

Again, press the Windows + R key, type 'regedit', and then hit Enter. From the left menu, double-click Computer to show the available folders and open HKEY_LOCAL_MACHINE. Open SOFTWARE > Policies >Google > Chrome. Double-click on the IncognitoModeAvailability entry, change the Value data to 0, and click OK.

Does Google Sync in Incognito?

At its simplest, incognito mode prevents others who pick up the device from seeing your browser history. Chrome itself does not save your browser history or any data you type into web forms in this mode. Google Chrome will not sync your private browsing history across your account, assuming you're signed into Chrome.


1 Answers

This is largely dependent on the browser.

The reasoning from the Chrome side is that the expectation is unclear from the users point of view. If you enable push in an incognito window and then close it, should you still receive push messages?

In Firefox I had a number of problems diagnosing an unusual setting I had on where Firefox would not write any files to disk, this lead to service workers not being install-able, even though the API was there, took a while to learn it was the security setting that was the issue.

like image 148
Matt Gaunt Avatar answered Sep 19 '22 12:09

Matt Gaunt