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)"
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With