Running as a background service

I was wondering if it’s something that is possible using Corona?

Lets just saying I’m making a game / app which gets real time updates, or does calculations / checks every say 10-15 minutes despite the application not being active. Is this something which is possible with Corona?

I know it can be done on Titanium, but doing a search I can’t find anything about running a background service. I’m not sure if I can’t find anything because it doesn’t exisit, or if it’s because I’m just flat out searching for the wrong thing.

I’m happy to do some research an figuring it out myself if someone can point me in the right direction. But don’t want to spend too much time chasing a unicorn when that time could be better spent looking into other functionalities to help me become a better corona developer.

Thanks in advance! [import]uid: 133056 topic_id: 23527 reply_id: 323527[/import]

… Never mind, as it always seems to happen I find in google the answer to my question as soon as I post. 9 months ago Peach replied to someone asking a very similar question informing them that this feature is not in corona currently.

My solution will be to store the time between app close and app open and then use the time difference to make any calculations needed. This wouldn’t be ideal if I wanted to make a multiplayer app which gave instant notifications when actions is required (like words with friends, and so on). So hopefully it’s a feature will be looked at being implemented soon! [import]uid: 133056 topic_id: 23527 reply_id: 94390[/import]

Hey Stevil,

Since that time we have actually added push notifications: http://blog.anscamobile.com/2011/12/push-notifications-for-ios-in-corona-sdk/

I’m not certain on whether or not this helps, my experience with them is currently extremely limited - however I wanted to share the link anyway.

That said I’ve made apps in the past using the second method you have described without issue, so I believe that is a good alternative at times too.

Best of luck with your project!

Peach :slight_smile: [import]uid: 52491 topic_id: 23527 reply_id: 94410[/import]