[英]Firebase notification are not working in chrome incognito mode
當我以隱身模式打開Chrome瀏覽器時,服務工作文件執行然后出錯。
獲得以下錯誤
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)"
使用Firebase雲消息傳遞的Chrome通知在隱身模式下被禁用。
有趣的是,我能找到的最佳鏈接是在OneSignal文檔中: https ://documentation.onesignal.com/docs/web-push-setup
這在很大程度上取決於瀏覽器。
Chrome方面的推理是,從用戶的角度來看,預期尚不清楚。 如果您在隱身窗口中啟用推送然后關閉它,您是否仍會收到推送消息?
在Firefox中,我遇到了一些問題,診斷出我在Firefox上不會將任何文件寫入磁盤的異常設置,這導致服務工作者無法安裝,即使API在那里,需要一段時間才能學習它問題的安全設置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.