App special events

Some apps have special events that appear without an update to the app. I'm sure there's numerous ways to go about doing this but this is the way i've thought of; is there a more efficent way?


Set a timer for the event start and stop and all of the code that utilizes this event


Exmaple: code in a timer for the Event to start July 1st at 00:00 EST and end July 7th 23:59 EST and as long as that time is true the event will take place.


Then on the next update simply remove the code for that event to free up some memory unless you plan on using that event again in the future.


I'm not looking for any code here. Just thoughts about more efficent ways, if any, to do events like this without releasing an update.


Thanks

I assume most developers would control things like this through a server. The way you describe could be manipulated by the user selecting their time manually to fall within those dates. A server would eliminate that, and allow you to control it dynamically thorugh the app "checking in".

App special events
 
 
Q