Well, after a month or so of delving into Corona and learning the ropes, I discovered that there seems not to be a way to make an SDK (maybe even Enterprise and Cards?) app to catch location events when in background. Saw a thread that can’t find anymore where it seems there is no way nor roadmap to get background functionalities.
That’s kind of a deal breaker (I know I know, I should have done my research one month ago …) for the kind of apps I plan to implement. Basically they are various types of tourist apps, and I don’t want tourists to keep their smartphone in their hand and staring at it when they should be enjoying the vistas.
Ideally they would just go around, smartphone in their pocket and probably even locked, and the app would still receive the location events. When near to a specific point of interest or other trigger, the app would do something: vibrate the phone, play a sound, etc …
I am trying to find a way - any way - to supplement the simplicity of Corona to this very central functionality. I saw non-corona apps such as Zombies, run! and the like which do keep track of user movement and notify when it walked a certain distance.
I am not sure how they did it in native code so I can’t easily trace a parallel. I guess that in Corona there’d be “something” running all the time and connected to the app that generates some local notifications (can local notifications even be shared?), or some other kind of communication with the app, which means try to implement some message/state passing mechanism that does not clash with the OS enforced sandboxing of apps. Sone “mystery component” would be the background part evolving the state of the user experience based on various constraints (the “producer”) and issues a notification that when tapped wakes the corona app (the “consumer”). Only problem - apart from feasibility - is that I see a big chunk of functionalities that need to go into the native code / service part, which kind defeats the purpose.
Ok, bringing the rambling to a close - any way to keep experimenting with Corona re. this, or should I try different frameworks / solutions for this specific need?
thanks in advance for pointers, even better if some proof of concept is available and could be shared …