I need help with the GlobalRankChangedMessage not sending
B
Bevan Calliess
started a topic
almost 6 years ago
I have only recently started using GameSparks so sorry if this is a stupid question but I can't find the answer?
The Problem:
None of the players registered for push notifications are receiving notifications when their scores have been beaten in the game?
My Goal:
I would like to have players who have registered for push notifications be alerted when a player posts a new score higher than their own and as such lowers their rank. I would prefer all of these notifications to be sent via push notification if at all possible to encourage players to return to the game if they have been beaten.
What I have set up:
I have several android devices registered for push notifications via Firebase (All using Device Authentication).
I have two leaderboards one for global scores and one for country based scores.
The devices are submitting scores to the leaderboards and I can see them via the NoSQL interface.
When a score is submitted I display the current rank to the player in game and all this works great.
I have set the GlobalRankChangedMessage to be push only in the configuration.
But still I can not see any push notifications on the registered devices?????
In the documentation it states the following about the GlobalRankChangedMessage
"This message is sent to players when their rank in a global leaderboard
changes such that they are knocked out of the configured 'Top N'." Is there somewhere I need to configure what the Top N is for my game????
What I have already tested:
Submitting scores to the leaderbords works fine and if I retrieve the rank form the server it is returned correctly
I have tested that Firebase is configured correctly using an event with some Cloud code and can successfully send test Push notifications to the devices from within the test harness.
I have changed the message settings for the GlobalRankChangedMessage to have sockets on and sockets off and push only and this does not seem to make any difference.
I tried setting the FCM JSON Template (Advanced) in the GlobalRankChangedMessage to what is used in the documented Firebase config documentation.
Can anyone give me some advice about what I might be missing?
Is there something I need to do to fire off the Rank Changed Message?
Does it only fire once a day or once a week?
Any help is much appreciated
Best Answer
C
Customer Support
said
almost 6 years ago
Hi Bevan,
You need to configure the TopN of your leaderboards configuration. Once you have done that the players in the TopN will get the GlobalRankChangedMessage when their score has been beaten. It fires as soon as the score is beaten. I'd recommend testing this in the Test Harness first. You can read more about this here.
You need to configure the TopN of your leaderboards configuration. Once you have done that the players in the TopN will get the GlobalRankChangedMessage when their score has been beaten. It fires as soon as the score is beaten. I'd recommend testing this in the Test Harness first. You can read more about this here.
Regards,
Liam
B
Bevan Calliess
said
almost 6 years ago
Thanks Liam that was the problem. When I set up my leaderboards I used the Unity Leaderboard tutorial for setup and the notification fields are not really discussed in that tutorial but are covered much better in the generic leaderboard documentation. I should have followed the more details link. Just in case others find this post the Link you provided Liam might be wrong I found the info here based on your answer. Thanks for your fast and helpful response.
Customer Support
said
almost 6 years ago
Hi Bevan,
Glad to hear you got that working. I did actually post the wrong link. Thanks for pointing that out ! I've just updated it.
Regards,
Liam
D
Daniel Norman
said
over 5 years ago
I am having issues with the GlobalRankChangedMessage as well. I configured using Firebase and can receive push notifications on both iOS and Android. However, when I try and get the global rank change message to fire, it is sending 2 messages. One message is correct (this message is coming from a script in cloudcode under User>GlobalRankChangedMessage. The second push notification only shows ${data.title},${data.body}
Which is what is configured in the advanced section of Messages>GlobalRankChangedMessage
Should I remove the script from cloudcode? If so, how can I properly configure the standard Message for GlobalRankChanged?
Or is there a way to ONLY send code from the cloudcode script and not have the standard Global Message send?
What I have tried:
- adding a script to ScriptExtensions (but it may not be configured correctly)
- removing cloud code script attached to the User>GlobalRankChanged (this causes only the ${data.title} message to send)
D
Daniel Norman
said
over 5 years ago
I resolved the issue by turning off the standard GlobalRankChanged message and only using the message in CloudCode. :D
Bevan Calliess
I have only recently started using GameSparks so sorry if this is a stupid question but I can't find the answer?
The Problem:
None of the players registered for push notifications are receiving notifications when their scores have been beaten in the game?
My Goal:
I would like to have players who have registered for push notifications be alerted when a player posts a new score higher than their own and as such lowers their rank. I would prefer all of these notifications to be sent via push notification if at all possible to encourage players to return to the game if they have been beaten.
What I have set up:
I have several android devices registered for push notifications via Firebase (All using Device Authentication).
I have two leaderboards one for global scores and one for country based scores.
The devices are submitting scores to the leaderboards and I can see them via the NoSQL interface.
When a score is submitted I display the current rank to the player in game and all this works great.
I have set the GlobalRankChangedMessage to be push only in the configuration.
But still I can not see any push notifications on the registered devices?????
In the documentation it states the following about the GlobalRankChangedMessage
"This message is sent to players when their rank in a global leaderboard changes such that they are knocked out of the configured 'Top N'." Is there somewhere I need to configure what the Top N is for my game????
What I have already tested:
Can anyone give me some advice about what I might be missing?
Is there something I need to do to fire off the Rank Changed Message?
Does it only fire once a day or once a week?
Any help is much appreciated
Hi Bevan,
You need to configure the TopN of your leaderboards configuration. Once you have done that the players in the TopN will get the GlobalRankChangedMessage when their score has been beaten. It fires as soon as the score is beaten. I'd recommend testing this in the Test Harness first. You can read more about this here.
Regards,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Bevan,
You need to configure the TopN of your leaderboards configuration. Once you have done that the players in the TopN will get the GlobalRankChangedMessage when their score has been beaten. It fires as soon as the score is beaten. I'd recommend testing this in the Test Harness first. You can read more about this here.
Regards,
Liam
Bevan Calliess
Just in case others find this post the Link you provided Liam might be wrong I found the info here based on your answer.
Thanks for your fast and helpful response.
Customer Support
Hi Bevan,
Glad to hear you got that working. I did actually post the wrong link. Thanks for pointing that out ! I've just updated it.
Regards,
Liam
Daniel Norman
I am having issues with the GlobalRankChangedMessage as well. I configured using Firebase and can receive push notifications on both iOS and Android. However, when I try and get the global rank change message to fire, it is sending 2 messages. One message is correct (this message is coming from a script in cloudcode under User>GlobalRankChangedMessage. The second push notification only shows ${data.title},${data.body}
Which is what is configured in the advanced section of Messages>GlobalRankChangedMessage
Should I remove the script from cloudcode? If so, how can I properly configure the standard Message for GlobalRankChanged?
Or is there a way to ONLY send code from the cloudcode script and not have the standard Global Message send?
What I have tried:
- adding a script to ScriptExtensions (but it may not be configured correctly)
- removing cloud code script attached to the User>GlobalRankChanged (this causes only the ${data.title} message to send)
Daniel Norman
I resolved the issue by turning off the standard GlobalRankChanged message and only using the message in CloudCode. :D
-
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