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
C
Customer Support
said
over 7 years ago
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.
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
C
Christian Gauthier
said
over 7 years ago
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
Customer Support
said
over 7 years ago
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.
I'm effectively using prime31 and you were right it's working fine with the new configuration.
Thanks a lot
m
mohan s
said
almost 7 years ago
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.
Christian Gauthier
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?
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
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
Christian Gauthier
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
Customer Support
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
Christian Gauthier
I'm effectively using prime31 and you were right it's working fine with the new configuration.
Thanks a lot
mohan s
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
-
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