I have a problem on my Android device (dont know if this happens on ios too).
I have build an app that uses the location of the user and it is working so far.
But when the app is suspended, the location listener is not removed correctly.
I tried to add Runtime:removeEventListener("location", locationHandler) on all system events that close or suspend the app in the onSystem listener, but it does not work always.
To reproduce the problem do the following:
Open the GPS sample project. (the map pin icon in the status bar appears)
Lock the screen.
Unlock the screen and close the App. (the map pin icon stays in the status bar)
Only when closing the app completely by swiping it off from the task manager removes the map pin from the status bar.
Is this the default/desired behaviour?
ps. closing the GPS sample app normally via the hard back button, or the home button without the forementioned procedure removes the map pin like expected.
Thank you in advance,