Cannot create AWS-SNS GCM account, showing invalid credentials message

最后都变了- 提交于 2019-12-07 05:04:39

问题


I have looked for resources on this particular problem with little luck so far so I thought I would try here.

I am attempting to create an Amazon Web Service Simple Notification Service app in the AWS-SNS console using GCM. I have created the APNS app for the iOS version with no troubles, however, when attempting to create the GCM version I receive the error: "The credentials you entered are invalid. Please enter valid credentials and try again."

In the Google APIs - API Access dashboard I have created both a key for server app and a key for android app. Below are a few screenshots to illustrate the problem.

Any suggestions as to what the problem may be or any instructional documentation recommendations would be tremendously appreciated.


回答1:


More on what Rohan has said, it would be on Google's end rather than Amazon's.

Delete the Server API Key in the Google API Console, and create a new one, allowing all IP addresses. Add the new key in AWS SNS, and you should be good to go!




回答2:


Amazon documentation is very old and not accurate anymore.

When you created your Application and the Credentials on Google Developers Console, from the left menu on Google developer console select:

APIs & auth -> APIs -> Google Cloud Messaging for Android -> Enable API



回答3:


Google recently migrated a lot of the GCM service/credential handling to Firebase. As a result you need to create a Server Key in the Firebase Console now.

See: Amazon SNS: "Platform credentials are invalid" when re-entering a GCM API key that previously worked




回答4:


You need to use the API key listed under Key for server apps (with IP locking) in the Google Console. The key listed under Android app will not work.

The Amazon SNS Getting Started with GCM documentation provides step-by-step guidance on setting up your app. If you are still having issues, please contact us via AWS Support or the Amazon SNS forum and we can troubleshoot further.

full disclosure: I am an Amazon SNS engineer.



来源:https://stackoverflow.com/questions/22826372/cannot-create-aws-sns-gcm-account-showing-invalid-credentials-message

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!