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 562 forks source link

Location not updating on server when app enters stationary when app is in background or is closed #491

Open m-tbox opened 4 years ago

m-tbox commented 4 years ago

Hello @mauron85

Environment:

Location updates correctly when app is in foreground or when sent to background while user is moving but if app goes into stationary region while app is closed or is background location stops to update. Even if I travel distance once app goes to stationary region from background or terminate state it does not exit stationary region and stops updating location on server.

Punit-Vajpeyi commented 4 years ago

Facing the same issue, can you please help

bsor-dev commented 4 years ago

Did you try this?

artmerlop commented 4 years ago

Any update? Same issue for iOS.

thuynt99 commented 3 years ago

i get same issue in real device ios, android 10

clarissacarcha commented 3 years ago

Hi, I'm getting the same problem. It seems like battery saver in android phones causing this. My phone is mi 10 lite and i followed this https://dontkillmyapp.com/xiaomi and now it is working fine. But how to prevent battery saver in react native to prevent this from happening?