|
@@ -52,7 +52,7 @@ export const startBackgroundLocationUpdates = async () => {
|
|
|
}
|
|
|
|
|
|
await Location.startLocationUpdatesAsync(LOCATION_TASK_NAME, {
|
|
|
- accuracy: Location.Accuracy.Highest,
|
|
|
+ accuracy: Location.Accuracy.High,
|
|
|
// 30 minutes for Android
|
|
|
timeInterval: 30 * 60 * 1000,
|
|
|
showsBackgroundLocationIndicator: false,
|
|
@@ -64,7 +64,9 @@ export const startBackgroundLocationUpdates = async () => {
|
|
|
// notificationColor: '#0F3F4F'
|
|
|
},
|
|
|
// iOS only
|
|
|
- activityType: Location.ActivityType.Other
|
|
|
+ activityType: Location.ActivityType.Other,
|
|
|
+ // 1 minute for iOS
|
|
|
+ deferredUpdatesInterval: 60 * 1000
|
|
|
});
|
|
|
};
|
|
|
|