Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

Google API configuration

AWS SNS GCM error message

like image 666
user3192649 Avatar asked Apr 03 '14 01:04

user3192649


2 Answers

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
like image 35
Ardavan Kalhori Avatar answered Oct 06 '22 22:10

Ardavan Kalhori


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!

like image 159
James Avatar answered Oct 06 '22 20:10

James