transistorsoft / react-native-background-geolocation

Sophisticated, battery-conscious background-geolocation with motion-detection
http://shop.transistorsoft.com/pages/react-native-background-geolocation
MIT License
2.62k stars 428 forks source link

Background location didn't respond if I stops for certain minutes and then moving again #2107

Open aniappgambit opened 1 month ago

aniappgambit commented 1 month ago

Your Environment

Expected Behavior

Debug logs

background-geolocation.2.log

christocracy commented 1 month ago

plugin took long time to awake again.

Define “long time” in terms of distance.

aniappgambit commented 1 month ago

Define “long time” in terms of distance.

It took between 5 to 15 KMs

christocracy commented 1 month ago

The plug-in uses a geofence around the last known position in addition to listening to the motion api to determine when the device is moving.

Both these APIs are managed by the OS — when the OS fires and event on one of those APIs, the plug-in acts.

there’s nothing the plug-in can do to make those APIs fire any quicker on some particular device in some particular environment.

I just travelled all around France for over two weeks with iPhone 15 Pro and Pixel 6 using the Demo app linked in the readme.

https://www.transistorsoft.com/lab/france

also see https://dontkillmyapp.com

aniappgambit commented 1 month ago

So, then what can i do in terms of setting in backgroundlocation config to decrease this geofence?

Please help me to get more consistent data in my application.

dhavaln commented 1 month ago

Hey Chris, I understand we will do more testing with other devices and confirm. [we have been using your plugins since 2016 (cordova, react-native, and recently capacitor), and they have always worked and will continue working for us in the future]

github-actions[bot] commented 6 days ago

This issue is stale because it has been open for 30 days with no activity.