|
@@ -532,13 +532,13 @@ const FilterModal = ({
|
|
|
if (status === 'granted' && isServicesEnabled) {
|
|
|
const bgStatus = await Location.getBackgroundPermissionsAsync();
|
|
|
if (bgStatus.status !== 'granted') {
|
|
|
- const { status } = await requestBackgroundPermissionSafe();
|
|
|
- if (status === Location.PermissionStatus.GRANTED) {
|
|
|
- await startBackgroundLocationUpdates();
|
|
|
- } else {
|
|
|
- await stopBackgroundLocationUpdates();
|
|
|
- setOpenSettingsBackgroundVisible(true);
|
|
|
- }
|
|
|
+ // const { status } = await requestBackgroundPermissionSafe();
|
|
|
+ // if (status === Location.PermissionStatus.GRANTED) {
|
|
|
+ // await startBackgroundLocationUpdates();
|
|
|
+ // } else {
|
|
|
+ await stopBackgroundLocationUpdates();
|
|
|
+ // setOpenSettingsBackgroundVisible(true);
|
|
|
+ // }
|
|
|
} else {
|
|
|
await startBackgroundLocationUpdates();
|
|
|
}
|
|
@@ -580,13 +580,13 @@ const FilterModal = ({
|
|
|
const bgStatus = await Location.getBackgroundPermissionsAsync();
|
|
|
|
|
|
if (bgStatus.status !== 'granted') {
|
|
|
- const { status } = await requestBackgroundPermissionSafe();
|
|
|
- if (status === Location.PermissionStatus.GRANTED) {
|
|
|
- await startBackgroundLocationUpdates();
|
|
|
- } else {
|
|
|
- await stopBackgroundLocationUpdates();
|
|
|
- setOpenSettingsBackgroundVisible(true);
|
|
|
- }
|
|
|
+ // const { status } = await requestBackgroundPermissionSafe();
|
|
|
+ // if (status === Location.PermissionStatus.GRANTED) {
|
|
|
+ // await startBackgroundLocationUpdates();
|
|
|
+ // } else {
|
|
|
+ await stopBackgroundLocationUpdates();
|
|
|
+ // setOpenSettingsBackgroundVisible(true);
|
|
|
+ // }
|
|
|
} else {
|
|
|
await startBackgroundLocationUpdates();
|
|
|
}
|
|
@@ -730,7 +730,9 @@ const FilterModal = ({
|
|
|
</View>
|
|
|
</TouchableOpacity>
|
|
|
|
|
|
- <View style={{ flexDirection: 'row', alignItems: 'center', marginVertical: 12 }}>
|
|
|
+ <View style={styles.divider} />
|
|
|
+
|
|
|
+ {/* <View style={{ flexDirection: 'row', alignItems: 'center', marginVertical: 12 }}>
|
|
|
<View style={styles.divider} />
|
|
|
<Text
|
|
|
style={{
|
|
@@ -743,7 +745,7 @@ const FilterModal = ({
|
|
|
Premium Features
|
|
|
</Text>
|
|
|
<View style={styles.divider} />
|
|
|
- </View>
|
|
|
+ </View> */}
|
|
|
|
|
|
{/* <TouchableOpacity
|
|
|
style={[
|