Stopping GPS Service
Is there a way to stop the GPS services once you have captured the location data and removed the listener without having to close the app?
2 Answers
-
Accepted Answer
looks like the appropriate way is to remove the listeners you have created and then the location services will shut down and cleanup after itself.
look at the code where
removeListener
is called in the GeolocationModule -
You can use a isCalled boolean and check it on the first line of the function and then set it true the first time it runs through.