Troubles with Push Notifications setup

Finally I got it working!

I came into GCM again and noticed that now I have not only API key but also Server Key.
Probably it’s after I migrated my app to Firebase.
I used the server key and finally it starts working.
So the manual is outdated and the warning in the docs makes sense. For push notifications to work we need server key which cannot be created in https://console.developers.google.com/apis/ anymore.
Instead we have to use https://console.firebase.google.com/

BTW: there’re two server keys there: long (“Server key”) and short (“legacy server key”). For GCM we need the legacy one.
(I previously tried the long one)

5 Likes