gps coordenates while app is closed

As far as I know, Corona won’t let any app running in the background or after the app is closed (correct me if I’m wrong).

I have a client that wants to send a msg to a client that passes his store, even if the app is closed. for that, I need to check gps position, with the app closed.

Is it possible to do this with native code inserted on a corona app?

Regards,

Carlos.

The main issue is that the Corona UI has not been designed to run in the background. There is an expectation that any API calls that affect the display and perhaps others will have a UI in the foreground. I know people who have gotten location services working and you perhaps could even generate a local notification if you detect you’re in the businesses geo-fence. But that said, we do not support for this and if you’re successful great. But if you run into problems, we are not obligated to fix them.  iOS requires setting a UIBackGroundMode. I don’t believe anything has to happen for Android. 

I’ve never tried this. I only remember some forum posts where people claimed some success. Again that said, we may make changes in the future that may completely break backgrounded apps and again, we are not obligated to fix the issue.

Rob

is it possible to use push notifications to accomplish what i want? never tried but looks good:

https://documentation.onesignal.com/v4.0/docs/location-triggered-event

if it triggers when someone passes that region, that is good enought for this project.

It might work.

The main issue is that the Corona UI has not been designed to run in the background. There is an expectation that any API calls that affect the display and perhaps others will have a UI in the foreground. I know people who have gotten location services working and you perhaps could even generate a local notification if you detect you’re in the businesses geo-fence. But that said, we do not support for this and if you’re successful great. But if you run into problems, we are not obligated to fix them.  iOS requires setting a UIBackGroundMode. I don’t believe anything has to happen for Android. 

I’ve never tried this. I only remember some forum posts where people claimed some success. Again that said, we may make changes in the future that may completely break backgrounded apps and again, we are not obligated to fix the issue.

Rob

is it possible to use push notifications to accomplish what i want? never tried but looks good:

https://documentation.onesignal.com/v4.0/docs/location-triggered-event

if it triggers when someone passes that region, that is good enought for this project.

It might work.