GameSparks and FireBase Cloud Messaging (FCM) on Android
I
Ivo Swartjes
started a topic
about 6 years ago
Hi,
Google has deprecated Google Cloud Messaging (GCM) in favor of Firebase Cloud Messaging (FCM). I'm now at a point where I either build GCM support or FCM support into our game in order to enable push notifications.
Am I correct that GameSparks currently only supports GCM? GameSparks asks for a GCM API key in order to enable push notifications.
If so, is there anything planned for adding or switching to FCM in the near future?
Thanks!
Best Answer
C
Customer Support
said
over 5 years ago
Hi Guys,
We have tested Firebase with GameSparks and it works. There are some new steps involved with Firebase that are not in are documentation yet. We hope to get these steps into the documentation soon. For now you can follow along here.
The registrationToken is gotten from whatever 3rd party plugin you are using on the client.
Once you have this token you send it to GameSparks using a pushRegistrationRequest.
Regards
Katie
S
Saad Anees
said
about 5 years ago
Hi Katie,
The tutorial as i mentioned earlier shows two events OnTokenReceived and OnMessageReceived but they don't get triggered. So I am unable to get registrationToken. Any help would be appreciated.
Regards
Saad
M
MGan Acc
said
about 5 years ago
HI
I have some problem to send push notification on Android in Test Push Notifications i get
Ivo Swartjes
Hi,
Google has deprecated Google Cloud Messaging (GCM) in favor of Firebase Cloud Messaging (FCM). I'm now at a point where I either build GCM support or FCM support into our game in order to enable push notifications.
Hi Guys,
We have tested Firebase with GameSparks and it works. There are some new steps involved with Firebase that are not in are documentation yet. We hope to get these steps into the documentation soon. For now you can follow along here.
1.Crate a new project on Google Developers Console
2. Go to the Fire Base Console and import google project and select the project you made in the google developers console,
3.Go back to the google developers console and go to credentials google will have auto created a server key
4.Go back to the gamesparks portal , go to integrations ->google-> edit put the server key into GCM API Key
That should be all you need. Try that and let me know how you get on. If you need any further assistance just let us know.
Thanks,
Liam
1 person has this question
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstRene van den Berg
I would also really like to know if there's a good way to use Firebase for iOS with GameSparks...
Saad Anees
This is fine. but I can't get registrationToken from Listener OnTokenReceived as mentioned on official firebase docs here https://firebase.google.com/docs/cloud-messaging/unity/client. Kindly update your docs ASAP we really need that. Thanks.
Customer Support
Hi Sadd
What is the problem you are having with the docs?
The registrationToken is gotten from whatever 3rd party plugin you are using on the client.
Once you have this token you send it to GameSparks using a pushRegistrationRequest.
Regards
Katie
Saad Anees
Hi Katie,
The tutorial as i mentioned earlier shows two events OnTokenReceived and OnMessageReceived but they don't get triggered. So I am unable to get registrationToken. Any help would be appreciated.
Regards
Saad
MGan Acc
HI
I have some problem to send push notification on Android in Test Push Notifications i get
But i don't get push notification on device.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics