GPS Tracker app to run in background

@Sonic,

I don’t have an exact answer, but I’m pretty sure you’ll need to do native development for both:

  • Android - Java, C, or C++ with Android NDK
  • iOS - C, Objective-C, or Swift with Apple’s language specific native kit.

Oh, and i do wonder if there is a way to shoehorn background execution in using Corona Enterprise.  I’m just not familiar enough this to say, “Yes or No.”  My guess is still no.

The reason we don’t support backgrounded apps is because the way we have implemented native to Lua assumes there will be a User Interface to communicate too. So if a native API generates an event that gets sent to lua while there is no interface (i.e. our frame handling cycle) to handle it, the results will be very unpredictable and we don’t support it.  We will not be supporting this anytime soon, and I don’t know that we ever will given how we make this work.

Rob

Hey, just checking in here! was wondering if corona supports background running apps now?

@Sonic,

No it does not. 

Also, for future askers, I think the answer will always be no.  I know this is a popular idea, but it is unlikely to change as its a fundamental part of the way Corona operates.

Having said that, if Corona does decide to support background operations, I’m sure they’ll post a big blog about it.  

This is not something they’d do and then not announce. 

Thanks! What language will let me run background apps? as im a fast learner i think i can learn a language decently in a couple months.

@Sonic,

I don’t have an exact answer, but I’m pretty sure you’ll need to do native development for both:

  • Android - Java, C, or C++ with Android NDK
  • iOS - C, Objective-C, or Swift with Apple’s language specific native kit.

Oh, and i do wonder if there is a way to shoehorn background execution in using Corona Enterprise.  I’m just not familiar enough this to say, “Yes or No.”  My guess is still no.

The reason we don’t support backgrounded apps is because the way we have implemented native to Lua assumes there will be a User Interface to communicate too. So if a native API generates an event that gets sent to lua while there is no interface (i.e. our frame handling cycle) to handle it, the results will be very unpredictable and we don’t support it.  We will not be supporting this anytime soon, and I don’t know that we ever will given how we make this work.

Rob