Search Unity

Question Get networked date for daily rewards?

Discussion in 'Unity Remote Config' started by nobluff67, Jul 15, 2022.

  1. nobluff67

    nobluff67

    Joined:
    Nov 3, 2016
    Posts:
    338
    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.
     
  2. PeachyPixels

    PeachyPixels

    Joined:
    Feb 17, 2018
    Posts:
    711
    nobluff67 likes this.
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    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.
     
    nobluff67 likes this.