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

独自空忆成欢 提交于 2019-12-05 11:02:28

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!

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
Pedro

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

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.

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