firebase云消息服务器键显示禁用
我正在尝试将新的Android应用程序推向Play商店。当我尝试将新应用添加到我的一个信号帐户时,它要求我提供firebase服务器密钥和发件人ID。因此,我去了firebase -settings-项目设置 - 从这里开始我的发件人ID,但服务器键已禁用。 这是它显示的错误 云消息传递API(遗产)禁用 如果您将消息新近集成到应用程序中,请使用最新的Firebase Cloud Messaging API(V1)。如果您是Cloud Messaging API(旧版)的现有用户,请考虑迁移到最新的Firebase Cloud Messaging API(V1)。我该怎么做才能获取Firebase Server密钥?
I'm trying to push a new android application to the play store. when I tried to add a new app to my one signal account it asked me for a firebase server key and a sender id. So I went firebase - settings - project settings - cloud messaging from here I got my sender id but the server key is disabled.
This is the error it's showing
Cloud Messaging API (Legacy) Disabled
If you are newly integrating messaging into your app, use the latest Firebase Cloud Messaging API (V1). If you are an existing user of Cloud Messaging API (Legacy), consider migrating to the latest Firebase Cloud Messaging API (V1). What should I do to get a firebase server key?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来云消息传递API(遗产)的服务器密钥目前是唯一的方法。
我最近也遇到了这个问题,并且由于新API提供了此类密钥而对
Server键
术语感到非常困惑。我在Azure Notification Hubs中遇到了这个问题。
请检查以下问题以查看任何后续
https://github.com/microsoftdocs/microsoftdocs/azure-docs/azure-docs/issues/95498
It seems the server key of Cloud Messaging API (Legacy) is the only way at this moment.
I also came across on this issue recently and felt very confused on the term
Server key
as the new API didnt offer such key.I came across the issue in Azure Notification Hubs.
Please check the following issue to see any follow up
https://github.com/MicrosoftDocs/azure-docs/issues/95498
默认情况下,您将把云消息传递API(遗产)作为禁用,但是如果您仍然想获取服务器密钥,请根据一个信号的文档
您必须从Google Cloud Console手动启用它,可以参考此
https://documentation.onesignal.com/docs/generate-generate-a-a-google-google-server-api--server-api-key#step-step-step-step- 2-get-your-firebase-cloud-message-token-and-sender-sender-id
By Default You will se the Cloud Messaging API (Legacy) as disabled , but if you still want to get the server key , According One Signal's Documentation
You have to manually enable it from the google cloud console , you can Refer This
https://documentation.onesignal.com/docs/generate-a-google-server-api-key#step-2-get-your-firebase-cloud-messaging-token-and-sender-id