فهرست منبع

hidden background location sharing option

Viktoriia 1 هفته پیش
والد
کامیت
7d13a7959b

+ 4 - 4
src/screens/InAppScreens/MapScreen/FilterModal/index.tsx

@@ -602,7 +602,7 @@ const FilterModal = ({
         // setOpenSettingsBackgroundVisible(true);
         // }
       } else {
-        await startBackgroundLocationUpdates();
+        // await startBackgroundLocationUpdates();
       }
 
       getLocation();
@@ -652,7 +652,7 @@ const FilterModal = ({
         // setOpenSettingsBackgroundVisible(true);
         // }
       } else {
-        await startBackgroundLocationUpdates();
+        // await startBackgroundLocationUpdates();
       }
       getLocation();
     } else if (!canAskAgain || !isServicesEnabled) {
@@ -697,13 +697,13 @@ const FilterModal = ({
                       accurate.
                     </Text>
                   </View>
-                  <View style={styles.bulletItem}>
+                  {/* <View style={styles.bulletItem}>
                     <Text style={styles.bulletIcon}>{'\u2022'}</Text>
                     <Text style={[styles.text, { flex: 1 }]}>
                       <Text style={styles.boldText}>In the background</Text> – Your location stays
                       up to date even when the app is closed. Other users see your latest location.
                     </Text>
-                  </View>
+                  </View> */}
                   <Text style={[styles.text]}>
                     You’re always in control, and you can change these settings anytime in the app{' '}
                     <Text

+ 2 - 2
src/screens/InAppScreens/MapScreen/index.tsx

@@ -861,7 +861,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
         // }
       } else {
         // await startBackgroundLocationUpdates();
-        await restartBackgroundLocationUpdates();
+        // await restartBackgroundLocationUpdates();
       }
 
       try {
@@ -1377,7 +1377,7 @@ const MapScreen: any = ({ navigation, route }: { navigation: any; route: any })
           await stopBackgroundLocationUpdates();
           // }
         } else {
-          await startBackgroundLocationUpdates();
+          // await startBackgroundLocationUpdates();
         }
 
         await getLocation();

+ 8 - 8
src/screens/LocationSharingScreen/index.tsx

@@ -172,7 +172,7 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
           // setOpenSettingsBackgroundVisible(true);
         // }
       } else {
-        await startBackgroundLocationUpdates();
+        // await startBackgroundLocationUpdates();
       }
     } else if (!canAskAgain || !isServicesEnabled) {
       setOpenSettingsVisible(true);
@@ -233,7 +233,7 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
           // setOpenSettingsBackgroundVisible(true);
         // }
       } else {
-        await startBackgroundLocationUpdates();
+        // await startBackgroundLocationUpdates();
       }
     } else if (!canAskAgain || !isServicesEnabled) {
       setOpenSettingsVisible(true);
@@ -271,7 +271,7 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
         </View>
       </TouchableOpacity>
 
-      <TouchableOpacity
+      {/* <TouchableOpacity
         style={[
           styles.alignStyle,
           styles.buttonWrapper,
@@ -298,7 +298,7 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
             style={{ transform: 'scale(0.8)' }}
           />
         </View>
-      </TouchableOpacity>
+      </TouchableOpacity> */}
 
       <View style={{ marginVertical: 12, gap: 6 }}>
         <Text style={[textStyles.text, textStyles.boldText]}>
@@ -313,13 +313,13 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
             show your current location to other users who also share theirs
           </Text>
         </View>
-        <View style={textStyles.bulletItem}>
+        {/* <View style={textStyles.bulletItem}>
           <Text style={textStyles.bulletIcon}>{'\u2022'}</Text>
           <Text style={[textStyles.text, { flex: 1 }]}>
             automatically mark regions (and DARE places) as visited in the Regions section as well
             as in the Trips section
           </Text>
-        </View>
+        </View> */}
 
         <Text style={[textStyles.text, { marginTop: 6 }]}>
           You can choose how you want to share your location:
@@ -331,14 +331,14 @@ const LocationSharingScreen = ({ navigation }: { navigation: any }) => {
             updates only when you open the app. This uses less battery but may be less accurate.
           </Text>
         </View>
-        <View style={textStyles.bulletItem}>
+        {/* <View style={textStyles.bulletItem}>
           <Text style={textStyles.bulletIcon}>{'\u2022'}</Text>
           <Text style={[textStyles.text, { flex: 1 }]}>
             <Text style={textStyles.boldText}>In the background</Text> – Your location stays up to
             date even when the app is closed. Other users see your latest location, and visited
             regions and DARE places are marked automatically.
           </Text>
-        </View>
+        </View> */}
         <Text style={[textStyles.text]}>
           You’re always in control, and you can change these settings anytime in the app{' '}
           <Text