Resetting a value every month - swift & firebase -


i have 2 integer values called score , highscore. using firebase store values, users , such. wondering, if possible reset users score every month? when reach 1st of month, every users score set 0?

is possible? sure hope so!

ps. sorry not showing code, believe irrelevent @ point - let me know if think otherwise :-)

you should better add app engine backend has simple servlet , cron task. backend going update firebase database monthly.

backend:

  • servlet; updates scores 0 except top score.
  • cron task; calls servlet monthly.

see link; adding backend logic using app engine:


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -