|
@@ -59,15 +59,15 @@ export const startBackgroundLocationUpdates = async () => {
|
|
|
|
|
|
await Location.startLocationUpdatesAsync(LOCATION_TASK_NAME, {
|
|
|
accuracy: Location.Accuracy.Highest,
|
|
|
- // 2 hours for Android
|
|
|
- timeInterval: 2 * 60 * 60 * 1000,
|
|
|
+ // 10 minutes for Android
|
|
|
+ timeInterval: 10 * 60 * 1000,
|
|
|
// just for testing on iOS
|
|
|
showsBackgroundLocationIndicator: true,
|
|
|
pausesUpdatesAutomatically: false,
|
|
|
// banner on Android
|
|
|
foregroundService: {
|
|
|
notificationTitle: 'NomadMania tracking your location',
|
|
|
- notificationBody: 'Location is used in background every 2 hours.',
|
|
|
+ notificationBody: 'Location is used in background every 10 minutes.',
|
|
|
notificationColor: '#0F3F4F'
|
|
|
},
|
|
|
// iOS only
|