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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -