You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: