繁体   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