亚马逊SNS:“平台凭证无效”当重新输入以前工作的GCM API密钥时 [英] Amazon SNS: "Platform credentials are invalid" when re-entering a GCM API key that previously worked

查看:473
本文介绍了亚马逊SNS:“平台凭证无效”当重新输入以前工作的GCM API密钥时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自今年4月份以来,我们一直在使用亚马逊SNS发送Android推送通知。

We have been using Amazon SNS to send Android push notifications since April this year.

推送没有任何问题,但从未有过任何记录到云控制台中的云消息API(看起来很奇怪)。

Pushes have sent with no problem, however there has never been any record of calls to the Cloud Messaging API in the Cloud Console (seems odd?).

今天,我为静态地图服务创建了一个新的API密钥(无关),并将我们的云消息API密钥(只有名称,密钥是相同的)。从这一点起,没有任何推送被发送,并且试图在AWS中创建一个新的平台应用程序(或更新现有的应用程序),结果如下:

Today I created a new API key for the Static Map service (unrelated) and renamed our Cloud Messaging API key (only the name, the key is the same). From this point no pushes have been sent, and trying to create a new platform application (or update the existing one) in AWS results in:


无效参数:属性原因:平台证书无效(服务:AmazonSNS;状态码:400;错误代码:InvalidParameter;请求ID:)

Invalid parameter: Attributes Reason: Platform credentials are invalid (Service: AmazonSNS; Status Code: 400; Error Code: InvalidParameter; Request ID:)

我也尝试手动拨打 https://gcm-http.googleapis.com / gcm / send 端点使用导致未授权(401)的密钥。

I have also tried manually making calls to the https://gcm-http.googleapis.com/gcm/send endpoint using the key which results in Unauthorized (401).

有趣的是,我可以使用我创建的密钥今天,他们在MismatchSenderId上失败。

Interestingly, I can make calls to the above endpoint using the key I created today, however they fail on MismatchSenderId.

在API中,我看不到很多以前的云控制台选项(服务器/浏览器密钥等) Manager?

I can't see a lot of the previous options that the Cloud Console had (server / browser keys, etc) within the API Manager?

推荐答案

GCM的API密钥管理已移至Firebase控制台。
您可以创建一个新的Firebase项目(或导入现有的云项目),并且您应该获得一个用于云消息传递的新服务器密钥。

API Key management for GCM has been moved to Firebase Console. You can create a new Firebase Project (or import an existing cloud project) and you should obtain a new Server Key for Cloud Messaging.

查看更新的文档:

https:// developers.google.com/cloud-messaging/android/client#create-an-api-project

和堆栈溢出问题:我在哪里可以找到Firebase Cloud Messaging的API密钥?

如果您仍有问题,请联系:

https://firebase.google.com/support/contact/troubleshooting

if you still have problems please contact:
https://firebase.google.com/support/contact/troubleshooting

这篇关于亚马逊SNS:“平台凭证无效”当重新输入以前工作的GCM API密钥时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆