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.
Asked
Active
Viewed 8,083 times
2 Answers
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.
- Go to your Google Developers Console
- On the left-pane, click on Credentials
- Under the Credentials Tab, Click on Create Credentials
- Select API Key
- Select Server Key
- Fill out the details.
- 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.
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