Get networked date for daily rewards?

The aim of my question is so that I can reward the user a daily login reward. A reward on change of date or every 24h. My current solution is to add a date to remote config and update whenever the player starts the game (change of date = reward). Its an easy solution, with the possibility of player abuse (remote and probably not worth the players effort).

I am wondering if there is a more elegant solution withing remote config, or within the back end services?

I though I read somewhere that this can be done from within backend services, I just cant find it, or I was imagining things again.

I’ve not tried anything like this, but maybe you could craft something using JEXL & Remote Config.

https://docs.unity3d.com/Packages/com.unity.remote-config@1.0/manual/RulesAndSettings.html

Alternatively, why not query an NTP time server using C# and compare with the last known day.

Just a few ideas anyway, hope they help.

1 Like

Remote Config does not store data per user, so likely not a good solution. You might want to just prototype with PlayerPrefs and check the local time and compare to the last save time when the game starts and save the current time when the player exits the game.

1 Like