【发布时间】:2019-02-11 11:10:39
【问题描述】:
昨天一切正常,今天早上我注意到chrome正在引入一个新界面,后来我检查了chrome版本,现在已经更新到v69。到目前为止,一切都很好。 然后我运行了连接到 firebase 的服务器。但我开始明白了:
09:46:30.598 index.esm.js?76ac:2069 Uncaught FirebaseError {code: "messaging/unsupported-browser", message: "Messaging: This browser doesn't support the API's …he firebase SDK. (messaging/unsupported-browser).", stack: "FirebaseError: Messaging: This browser doesn't sup….0.0.0:8000/index.js?d00bc69e0c69f561d4af:2672:1)"}code: "messaging/unsupported-browser"message: "Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."stack: "FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
at Object.factoryMethod [as messaging] (webpack-internal:///311:2077:32)
at FirebaseAppImpl._getService (webpack-internal:///30:134:66)
at FirebaseAppImpl.(anonymous function) [as messaging] (webpack-internal:///30:323:31)
at Object.serviceNamespace [as messaging] (webpack-internal:///30:308:32)
at eval (webpack-internal:///66:51:36)
at Object.<anonymous> (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:1240:1)
at __webpack_require__ (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:708:30)
at fn (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:113:20)
at eval (webpack-internal:///286:55:11)
at Object.<anonymous> (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:2672:1)"__proto__: Error
长错误变短:Messaging: This browser doesn't support the API's required to use the firebase SDK
降级到 chrome 68 是一种解决方案,但有人有更好的主意吗?
编辑:
系统信息:Pop!_OS 18.04 LTS Linux (64-bit)
Chrome 版本:69.0.3497.81(官方版本)(64 位)
节点版本:v10.9.0
编辑:
服务器在部署到生产环境和 firefox 时工作正常。
【问题讨论】:
标签: firebase google-chrome firebase-realtime-database browser-support