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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -