Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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:
    716
    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.