消息传递:此浏览器不支持使用 firebase SDK 所需的 API。 (messaging/unsupported-browser)
Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)
我在部署我们的网站后收到此错误,我的域是 domain.com,我无法将其更改为 https 或 localhost,那么我该如何消除此错误。
provider.ts:122 Uncaught FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
at e.instanceFactory (index.ts:56:25)
at e.getOrInitializeService (provider.ts:318:33)
at e.getImmediate (provider.ts:115:21)
at e._getService (firebaseApp.ts:136:22)
at e.<computed> [as messaging] (firebaseNamespaceCore.ts:228:29)
at Object.s [as messaging] (firebaseNamespaceCore.ts:209:32)
at Module.<anonymous> (firebaseInit.js:18:28)
at a ((index):1:2329)
at r ((index):1:2198)
at Array.t [as push] ((index):1:2061)
Firebase 云消息传递仅在 HTTPS 网站上受支持。如果您不能将您的网站置于 HTTPS 上,您将无法使用 FCM 传送推送通知。
另见:
我在部署我们的网站后收到此错误,我的域是 domain.com,我无法将其更改为 https 或 localhost,那么我该如何消除此错误。
provider.ts:122 Uncaught FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
at e.instanceFactory (index.ts:56:25)
at e.getOrInitializeService (provider.ts:318:33)
at e.getImmediate (provider.ts:115:21)
at e._getService (firebaseApp.ts:136:22)
at e.<computed> [as messaging] (firebaseNamespaceCore.ts:228:29)
at Object.s [as messaging] (firebaseNamespaceCore.ts:209:32)
at Module.<anonymous> (firebaseInit.js:18:28)
at a ((index):1:2329)
at r ((index):1:2198)
at Array.t [as push] ((index):1:2061)
Firebase 云消息传递仅在 HTTPS 网站上受支持。如果您不能将您的网站置于 HTTPS 上,您将无法使用 FCM 传送推送通知。
另见: