Running App in Background

I’m building a tamagotchi style game, that needs to have hunger and happiness values run in the background (ie have the tamagotchi get hungry and get unhappy ) even when the app is not in the foreground.

I’ve added a resumed listener to handle most of the stuff when the app resumes, but I’d like to be able to alert the user if the tamagotchi is getting hungry or unhappy so they can fix it

—tl;dr—

Need to alert player when tamagotchi is hungry even when game is in background/suspended [import]uid: 8838 topic_id: 22134 reply_id: 322134[/import]

did you try notifications? You can estimate the time it will take for the tamagotchi to become hungry, go critical and die, so you can have three notifications set up for these times. If the user rectifies this situation, then you can cancel those notifications and set up new ones (recalculated from this instance) [import]uid: 3826 topic_id: 22134 reply_id: 87973[/import]

Aw crap, I forget to see that Android/iOS distinction, sorry!! [import]uid: 3826 topic_id: 22134 reply_id: 87980[/import]

According to the API Matrix Notifications are available only on iOS.

Thanks for the suggestion, but as you can see (from the sub board this is posted in) I’m an Android developer, with no plans for iOS at this time;

Feel free to prove me wrong however, as all I want is a solution!
Thanks again for the suggestion, though!

Anything else anyone can think of?
[EDIT]
@JayantV It’s all good! it took me a couple of frustrating minutes to see it as well XD [import]uid: 8838 topic_id: 22134 reply_id: 87979[/import]