Set up Google Cloud Messenging (GCM) with Amazon Web Services (AWS) (SNS) Simple Notification Service

I want to create an application in my sns, and whenever I enter information about the application API, I get the following error:

The credentials you entered are invalid. Please enter valid credentials and try again.

I have done the following:

Google Console → Selected Project → Selected APIs and Auth → Selected Credentials → Create New Key → Browser Key

Then enter the site into the *mysite.systems/*

Then go to the Google Play Developer Console and follow these steps: Choose "Application"> "Select Services and API" → "Sender ID Link" → "Enter API Key" at the top. It is accepted

Then for my AWS console and in SNS do the following

 Application Name: RandomName Push Platform: Google Cloud Messenging (GCM) API key: API key from before 

This does not work and throws the above error.

I tried the same process, in addition, an API public key was selected instead. The value 0.0.0.0/0. was 0.0.0.0/0. as Google suggests as a test . Then it worked fine. The problem is that I cannot use the IP address as I use load balancing for my AWS account that does not have an IP address, so this is not possible.

In addition, I also stuck to this question, and it didn’t work for me: It is not possible to create an AWS-SNS GCS account displaying invalid credential data

thanks

* EDIT In a month, I'm still looking for a solution ...

* EDIT 2 The answer to this question has not yet been provided, and I have not yet solved this problem.

+5
source share
1 answer

This worked for me when I go for the server key, but instead of 0.0.0.0 I left the text box for IP empty. Good luck

0
source

Source: https://habr.com/ru/post/1206941/


All Articles