Sign In Register

How can we help you today?

Start a new topic

Is there a way to limit the number of Push notifications sent to a player in 24hr period?

I am planning on implementing push notifications for my new game and really like the idea of the "Global Rank Changed Message" to try and drive competition and hopefully encourage players to return to the game.  I have noticed during testing that these messages are sent as soon as the player rank changes and if I submit several scores in quick succession the registered devices get a push notification for each one.  I am concerned that early in the release of the game a players global rank could change several times a day if not several times an hour. 

Is there a way to limit the number of push notifications sent for a particular message each day or within a certain period? Basically I want to say if they have already received a rank changed push notification in the last 24 hours don't send any more.

1 Comment

 Hey Bevan,

Unfortunately there is no out-of-the-box way to do this with our current messaging system. However, i have figured out and tested a round-about way which would require some setup yourself.
You might lot like it though (i dont like it myself, but it works).

So, the setup is as follows....

[1] - Disable socket and push options on the GlobalMessage Settings. This will result in the message never being sent to the player. However, the user message script is still called before this check.

[2] - Create a custom script message to replace the global message

[3] - In the script for the message check if the player has used their daily message count

[4] - If not, send your custom script message now.
[5] - log the time of the last message sent (you can stick this in the player scriptData)
[6] - If yes, then dont send the message, but check the last time the message was sent so you can reset it if needed

Let me know if that makes sense, or if you need anything clarified.

Login to post a comment