1

I want to use push notification service on my Android project, but when I try to generate a server key, I notice that Google's developers console changed and I can't find where I can generate my server key. I looked at a lot of tutorials but still I can't do it.

AL.
  • 36,815
  • 10
  • 142
  • 281
azuosxela
  • 210
  • 1
  • 7
  • 15

2 Answers2

3

Update: There is now a visible note in the GCM docs saying:

Starting from Sept. 2016 new server key can only be created in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.


Just retrieved a part of my answer here.

  1. Go to your Google Developers Console
  2. On the left-pane, click on Credentials
  3. Under the Credentials Tab, Click on Create Credentials
  4. Select API Key
  5. Select Server Key
  6. Fill out the details.
  7. Click on Create

The Server Key should be available by then.

PS: Just tried it out, this still is a way to generate a Server Key.

Community
  • 1
  • 1
AL.
  • 36,815
  • 10
  • 142
  • 281
1

please consider changing from google cloud messaging to firebase cloud messaging google now recommend developers to use FCM instead of GCM

link here: https://firebase.google.com/features/

SaravInfern
  • 3,338
  • 1
  • 20
  • 44