Background processing while app is minimized

Hello,

I have a couple scenarios I was thinking about, and am wondering if and how this could be done. Both scenarios utilize gameplay which the player sets up a set of actions which should execute both in game, and out of game.

Example1
Lets say the user is playing a strategy game which has build times, and I want the user to receive a notification 30 minutes later on their phone when the build is done.

Example2
The user selects a quest for their NPC hero who starts the quest in one location fights their way through to complete the quest while the game is minimized. I want the player to receive notifications when the hero levels up, receives new items, or completes the quest.

I am not sure how the saves/events are handled when the game is minimized. My initial expectation was that there may need to be an external server involved to do some of the processing if the app completely freezes the game state when minimized. [import]uid: 135255 topic_id: 33218 reply_id: 333218[/import]

I believe you could do this with local notifcations based on time passed; supposing all events are time based. There’s a blog on that worth looking over by Jon Beebe (IIRC) you may want to check out. [import]uid: 52491 topic_id: 33218 reply_id: 132005[/import]

Thank you Peach, I will take a look for Jon’s blog. I was thinking the same thing, but was hoping I could do some calculations real time in the background rather than just a timed notification. I suppose you could do a check once the app is restored and run the calculations to display the event information upon entering the game, and the notifications would just be a reminder that event.x has completed. [import]uid: 135255 topic_id: 33218 reply_id: 132006[/import]

I believe you could do this with local notifcations based on time passed; supposing all events are time based. There’s a blog on that worth looking over by Jon Beebe (IIRC) you may want to check out. [import]uid: 52491 topic_id: 33218 reply_id: 132005[/import]

Thank you Peach, I will take a look for Jon’s blog. I was thinking the same thing, but was hoping I could do some calculations real time in the background rather than just a timed notification. I suppose you could do a check once the app is restored and run the calculations to display the event information upon entering the game, and the notifications would just be a reminder that event.x has completed. [import]uid: 135255 topic_id: 33218 reply_id: 132006[/import]