Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS background location tracking stops after 40 minutes. #314

Open
Akhidha00 opened this issue May 17, 2024 · 0 comments
Open

IOS background location tracking stops after 40 minutes. #314

Akhidha00 opened this issue May 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@Akhidha00
Copy link

Akhidha00 commented May 17, 2024

I want to track the device for more than 10 hours in IOS background(app is in minimised state).But the tracking ends in 40 minutes.
Is there any solution for this?
The code is:
await Geolocation.watchPosition(
(position) => {
var userLat = position.coords.latitude;
var userLon = position.coords.longitude;
if(latitude != userLat && longitude != userLon){
getLocationAddress(userLat, userLon);
}
},
(error) => {
checkPermission()
},
{ enableHighAccuracy: true, distanceFilter:500, fastestInterval: 300000, showsBackgroundLocationIndicator: true} // Optional configuration
);

And the versions are:
"@react-native-community/geolocation": "^2.0.2",
"react-native": "0.64.2",

I am stuck with this.

@Akhidha00 Akhidha00 added the question Further information is requested label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant