mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 559 forks source link

Running in background for 10 seconds then stops #549

Open junaidrazaq opened 3 years ago

junaidrazaq commented 3 years ago

Hi, i am having an issue where i press home when i am in the app to put the app in background mode. For the first 10 seconds, i am recieving updates, however after the 10 seconds, the location tracking seems to stop. This is what i get in xcode:

2021-07-30 13:03:50.193674+0100 {MYAPP}[Task ended 2021-07-30 13:03:51.488726+0100 {MYAPP}[ BackgroundSession connection to background transfer daemon interrupted 2021-07-30 13:03:51.490196+0100 {MYAPP}BackgroundSession connection to background transfer daemon invalidated

Also, when the app is in the background, the top of the device is highlighted blue. Is there anyway to get rid of this? Thanks

zoobibackups commented 2 years ago

Exactly, it stop after 10s even foreground servise is running