Greetings.
I am currently working on a gps app, however I have encountered a big issue and so far hae found no solution.
In about half of the devices I’ve tested the “location” event gets triggered even if GPS is not enabled. Apparently it shows the last info provided by the GPS, even if it was many hours ago.
In other devices as soon as I turn GPS off I stop receiving location events. (which is the desired behavior)
I’ve removed the COARSE_LOCATION permission thining that it could be caused by the internet network but it still happens.
Has anybody encountered this same issue? any ideas on how to avoid it?
Is there any component of the location event that specifies what triggered the event? (gps, wifi, other) If the documentation is correct, there’s no way but it would be very useful I’ve tried to print the event table but table.concat won’t work.
Any other way to discard fake location events?
Perhaps I’m ovelooking something simple or obvious?
Is there a way to check if GPS is on or off?
Edit: It must be that I’m failingo to add something, my code must be right because I observe the exact same issue in the GPS app ncluded with Corona samples.
Edit 2: It isn’t happening on 2189, so anywhere I can check the changes to location event?
Thanks.