Sign In Register

How can we help you today?

Start a new topic
Answered

wrong text in android push notification

I have cloud code that use Spark.sendMessageExt to send push notifications.

I configure the message to send push when socket is ON to help find the problem.

The message received "in game" has the right text but the Android notification has the following text:


Default Title (title parameter not sent wtih...

Default subtitle (subtitle parameter not sent...


Changing the "device types" form empty to ANDROID didn't fix the problem.


Does somebody else has this problem? Is it a bug?




Best Answer

Hi Christian,


If the messages are showing as delivered in the GCM diagnosis tool and working fine on IOS it is likely the GCM JSON structure. Different plugins require different JSON structures for them to work on android. If you’re using the Unity plugin prime31 to manage your GCM, the attached config should work for you.


Thanks,

Liam


Hi Christian Gauthier,


As you mentioned that you are effectively using prime31, Can you please tell me how to get start with prime31 after importing the plugin in to Unity. I mean, how can i register my device with GCM and after getting registrationID(pushID) how can i register with gamesparks. If you have github link of your code or any help will be useful to me. 


Thanks

Mohan

I double checked the android configuration and everything looks fine. I used the "GOOGLE CLOUD MESSAGING (GCM) DIAGNOSTICS" tool available in "Google Play Dev Console" and my messages are showing up as "delivered". The same message is working fine on IOS. Like I said the device is receiving a message, so I don't thing it's a configuration issue. May be I'm wrong.

 

Is it related to "GCM JSON Structure" in the "Edit Google Configuration" Screen?


The project is using SDK Version 5.0.0rc46

Answer

Hi Christian,


If the messages are showing as delivered in the GCM diagnosis tool and working fine on IOS it is likely the GCM JSON structure. Different plugins require different JSON structures for them to work on android. If you’re using the Unity plugin prime31 to manage your GCM, the attached config should work for you.


Thanks,

Liam

I'm effectively using prime31 and you were right it's working fine with the new configuration.

Thanks a lot

Hi Christian,


Have you gone through our tutorial detailing the setup of push notifications for Android ? Can be found here.

Also if you let us know which SDK you are on and if you are using any plugins that would help.


Thanks,

Liam

Login to post a comment