More Than One Corona App Running On A Device - 2Nd One Doesnt Get Location Updates When Other One Running

Hi,

I have 3 independent apps written in corona and they all use the location of the device. It seems that only the first app running can get the location updates from the OS and the other ones just wait.

When the app starts, it registers and app listener and waits for the location, it receives the location a few seconds later - all good. When the second one (and third one) starts and registers their listeners they never gets any location updates. I can kill them all and then fire them up in a different order and its only the one that starts first that gets the location updates.

I changed the code so when the first one gets the suspend event, it removes its location listener but when I start the second one up, it still doesn’t receive a location.

This happens on iOS and Android devices (only ones I have tested on)

Note that when I run them individually they work fine - I have to kill each one so the other isn’t still running.

Is there some configuration required?

thanks

I’ve asked the engineers to see if this is a problem.  I suspect the OS might not like multiple apps to try and access the GPS at the same time.

I ran up the Maps app on the iPad but my app gets the location fine even when Maps is running. My Android device has a Navigation app which uses the GPS. I started that one followed by my first App and it works fine. If it helps they could download my 2 apps and see. I can provide a download code for the paid one. The app that starts second doesn’t seem to receive any location events and just waits.

SunAspect Pro 

https://itunes.apple.com/us/app/sunaspect-pro/id623076125

SunAspect 

https://itunes.apple.com/us/app/sun-aspect/id581000144

I’ve asked the engineers to see if this is a problem.  I suspect the OS might not like multiple apps to try and access the GPS at the same time.

I ran up the Maps app on the iPad but my app gets the location fine even when Maps is running. My Android device has a Navigation app which uses the GPS. I started that one followed by my first App and it works fine. If it helps they could download my 2 apps and see. I can provide a download code for the paid one. The app that starts second doesn’t seem to receive any location events and just waits.

SunAspect Pro 

https://itunes.apple.com/us/app/sunaspect-pro/id623076125

SunAspect 

https://itunes.apple.com/us/app/sun-aspect/id581000144