react-native-geolocation
react-native-geolocation copied to clipboard
I want to run a task while location tracking in ios background.
Ask your Question
I'm looking to run a fetch request in every 1 minute and post the location of device to a server. In ios watchPosition with interval doesn't work.
-
And I've tried implementing setTimeout function, which fires a getCurrentPosition in interval of 1 minute but ios kills the app in background.
-
I have the permissions of always location. But its not working. Is there any way to keep the app running in background with location.
Have you tried using https://github.com/ocetnik/react-native-background-timer?