react-native-geolocation icon indicating copy to clipboard operation
react-native-geolocation copied to clipboard

I want to run a task while location tracking in ios background.

Open SymntxHomendra51 opened this issue 3 years ago • 1 comments

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.

SymntxHomendra51 avatar May 19 '22 10:05 SymntxHomendra51

Have you tried using https://github.com/ocetnik/react-native-background-timer?

michalchudziak avatar Jun 02 '22 07:06 michalchudziak