简体   繁体   English

Firebase通知在Chrome隐身模式下无效

[英]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. 当我以隐身模式打开Chrome浏览器时,服务工作文件执行然后出错。

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)"

Notifications to Chrome using Firebase Cloud Messaging are disabled in incognito mode. 使用Firebase云消息传递的Chrome通知在隐身模式下被禁用。

Interestingly enough, the best link I can find for it is in the OneSignal documentation: https://documentation.onesignal.com/docs/web-push-setup 有趣的是,我能找到的最佳链接是在OneSignal文档中: https ://documentation.onesignal.com/docs/web-push-setup

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. Chrome方面的推理是,从用户的角度来看,预期尚不清楚。 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. 在Firefox中,我遇到了一些问题,诊断出我在Firefox上不会将任何文件写入磁盘的异常设置,这导致服务工作者无法安装,即使API在那里,需要一段时间才能学习它问题的安全设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 chrome隐身模式下的LocalStorage - LocalStorage in chrome Incognito Mode socket.emit无法在移动设备上运行(但它可以在隐身模式下运行) - socket.emit is not working in mobile chrome (but it works in incognito mode) 社交登录不适用于隐身模式 - Social login is not working with incognito mode Chrome 76 更新后如何避免在隐身模式下请求通知权限? 通知在几秒后被拒绝? - How to avoid asking for Notification permission in Incognito mode after Chrome 76 update? Notification rejected after how many seconds? jQuery侦听器在隐身模式Chrome中间歇性工作 - Jquery listener works intermittently in incognito mode chrome Javascript 效果仅适用于“隐身模式”(Chrome) - Javascript effect works in "Incognito mode" only (Chrome) 在隐身模式下使用chrome.browsingData.remove() - Using chrome.browsingData.remove() in incognito mode 谷歌登录无法在隐身模式下工作 - Google Sign-in not working in incognito mode 谷歌隐形 reCaptcha 仅在隐身模式下工作 - Google invisible reCaptcha is only working in Incognito mode 在Chrome隐身模式下设置了Adobe Target PCID,但在普通模式下丢失了 - Adobe Target PCID set in Chrome Incognito Mode But Missing in Normal MOde
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM