Reputation: 392
We're using Urban Airship to send push messages to our Android app.
In that process, we need to configure Airship with 'Server Key' provided in Firebase Console -> Cloud Messaging.
As recommended there, we are trying to migrate from GCM to FCM.
The problem is that 'Server Key' is missing in 'Firebase Cloud Messaging API (V1)' configuration. It is still available in 'Cloud Messaging API (Legacy)' configuration, but migration is suggested.
Following the links in FCM configuration didn't help too much with this issue.
Upvotes: 19
Views: 17168
Reputation: 24940
Firebase cloud messaging is now shifted to API (V1)
So to get the serverkey
you should enable the cloud messaging API (Legacy).
Follow the steps:
3.Now redirect back to the main page and refresh the page.
Now you have your serverkey
Upvotes: 23
Reputation: 111
From Firebase Cloud Messaging API (V1), we have to enable the cloud messaging service.
Reference - https://documentation.onesignal.com/docs/generate-a-google-server-api-key
Upvotes: 7
Reputation: 216
To access the server key:
I hope this will help you
Upvotes: 11