簡體   English   中英

Firebase 令牌未在 flutter web 中生成

[英]Firebase token not generated in flutter web

錯誤:

[firebase_messaging/token-subscribe-failed] 消息:為用戶訂閱 FCM 時出現問題:請求缺少所需的身份驗證憑據。 預期 OAuth 2 訪問令牌、登錄 cookie 或其他有效的身份驗證憑據。 請參閱https://developers.google.com/identity/sign-in/web/devconsole-project .

在 Object.createErrorWithStack (http://localhost:2277/dart_sdk.js:5080:12)
在 Function._throw (http://localhost:2277/dart_sdk.js:20337:18)
在 Function.throwWithStackTrace (http://localhost:2277/dart_sdk.js:20334:18)
在 async._AsyncCallbackEntry.new.callback (http://localhost:2277/dart_sdk.js:40851:18)
在 Object._microtaskLoop (http://localhost:2277/dart_sdk.js:40708:13)
在 _startMicrotaskLoop (http://localhost:2277/dart_sdk.js:40714:13)
在 http://localhost:2277/dart_sdk.js:36191:9

您需要在 Firebase 設置中生成一個 Vapid Key | 雲消息選項卡。

請檢查以下答案以了解如何執行此操作。

https://stackoverflow.com/a/54996207/10086962

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM