浏览代码

10 minutes for Android

Viktoriia 5 月之前
父节点
当前提交
f8e82a60f4
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/utils/backgroundLocation.ts

+ 3 - 3
src/utils/backgroundLocation.ts

@@ -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