Background geofencing with Corona

Hello everyone,

We would like to be able to collect GPS coordinates when the app is asleep or in hibernate mode, and send push notifications to the user if they are within a range of a specific location.

I know the question has already been asked, and as far as I know it is not possible yet, but is it in the roadmap at all ?

Regards,

Pascal Bancel
Keetiz

Corona’s core principle is that there is a user interface available for our API calls. We have not tested, nor do we support backgrounded apps. We don’t have any plans on supporting backgrounding in the future either.

Now that said, I know some developers have had success with getting GPS information while in the background. You can certainly try, but we really can’t help if it doesn’t work and if we make changes in the future the break your implementation, we won’t address the fix.

Rob

Thanks for the reply Rob

Ok I understand that having the app wake up and execute LUA code seems complicated.

But how about a plugin that would record an URL and some data through a LUA call, and in background mode request that URL in native code passing data and GPS coordinates ?

This is a call to plugin makers, if you can make it for Android and iOS we would buy it.

Regards,

I would second that purchase - a plugin that enabled backgrounded app location detection, so that the app could be foregrounded (or a notification sent, more likely) would be awesome! 

Personally I love Corona but it has its limits and only running in the foreground is a big one.  Don’t expect that to change in the foreseeable future.  You may need to look elsewhere for now.

Corona’s core principle is that there is a user interface available for our API calls. We have not tested, nor do we support backgrounded apps. We don’t have any plans on supporting backgrounding in the future either.

Now that said, I know some developers have had success with getting GPS information while in the background. You can certainly try, but we really can’t help if it doesn’t work and if we make changes in the future the break your implementation, we won’t address the fix.

Rob

Thanks for the reply Rob

Ok I understand that having the app wake up and execute LUA code seems complicated.

But how about a plugin that would record an URL and some data through a LUA call, and in background mode request that URL in native code passing data and GPS coordinates ?

This is a call to plugin makers, if you can make it for Android and iOS we would buy it.

Regards,

I would second that purchase - a plugin that enabled backgrounded app location detection, so that the app could be foregrounded (or a notification sent, more likely) would be awesome! 

Personally I love Corona but it has its limits and only running in the foreground is a big one.  Don’t expect that to change in the foreseeable future.  You may need to look elsewhere for now.