|
@@ -85,6 +85,7 @@ import _ from 'lodash';
|
|
|
import ScaleBar from 'src/components/ScaleBar';
|
|
|
import MessagesDot from 'src/components/MessagesDot';
|
|
|
import {
|
|
|
+ restartBackgroundLocationUpdates,
|
|
|
startBackgroundLocationUpdates,
|
|
|
stopBackgroundLocationUpdates
|
|
|
} from 'src/utils/backgroundLocation';
|
|
@@ -652,7 +653,8 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
|
|
|
await stopBackgroundLocationUpdates();
|
|
|
}
|
|
|
} else {
|
|
|
- await startBackgroundLocationUpdates();
|
|
|
+ // await startBackgroundLocationUpdates();
|
|
|
+ await restartBackgroundLocationUpdates();
|
|
|
}
|
|
|
|
|
|
try {
|