Sign In Register

How can we help you today?

Start a new topic

GameSparks and FireBase Push notifications on Android

HI 


I have some problem to send push notification on Android in Test Push Notifications

image


But i don't get push notification on device.


Thanks!


Hi MGan Acc


What client are you using?

Do you have the client set up to receive push notification?


Regards

Katie 

client - Unity3d 5.5.2.

Yes. I can get message from Firebase Notifications.

Hi MGan Acc

Did you set the deviceOS to FCM when sending the PushRegistrationRequest


{

"@class": ".PushRegistrationRequest",
"deviceOS": "FCM",
"pushId": "DEVICE_REGISTRATION_ID"

}

 

 Can you try sending a push message via Cloud code?


Regards

Katie

Thanks Katie! it's what i missed.

How do you set the deviceOS to FCM? I dont see this as part of the PushRegistrationRequest.  Do you do this in setScriptData?

Hi Jaayden


What sdk are you using?

If you are using Unity,Please update the sdk to the latest version.


Regards

Katie



Hello, I have the same problem.

I am using Firebase.


The only problem I can see are the entries in the Capture-push-record in the noSQL tab.

result: "Exception:HTTP Status Code: 401"

type: "gcm" 


 Should the type be FCM? 



Hi Andrea


Have you followed are guild for FCM integration here

You have to set devicOS to FCM in the PushRegistrationRequest.

 

{

"@class": ".PushRegistrationRequest",
"deviceOS": "FCM",
"pushId": "DEVICE_REGISTRATION_ID"

}

 

Regards

Katie

Now it works, but I don't understand whether I changed something or it was just a matter of time after I changed from ANDROID to FCM when I registered for push notifications.


It works but I have a problem with icons, on Android the notification icon (NOT in the status bar) is grey. I don't really understand where to set it.


Furthermore using Firebase on iOS is hell. Think I am going to use iOS for iOS and Firebase for Android. Anybody with an easy to implement solution for notifications?


I tried also to use OneSignal but for every message I have to script to make it send a push too, right? Is not customisable from the Message tab, right?


1 person likes this

Hello Andrea Marchetti. Can you please guide how to send push notifications. I tried everything but unable to send push notifications to android device. i am using firebase token as a push id. Each and everything is fine but push notifications are not working. I dont know why?

Login to post a comment