SDK Version: 3.21.3
Platforms(Android/iOS/web/all): iOS
My app is being rejected because of Location Services permissions
…when reviewed on iPad running iOS 13.5 on Wi-Fi
we were not given the option to enable location services in the binary
Here is my code at the Top level:
componentDidMount() {
this.getLocationAsync();
}
getLocationAsync = async () => {
let { status } = await Permissions.askAsync(Permissions.LOCATION);
if (status !== 'granted') {
Alert.alert(
"No Location Permission",
"This app requires location services so...",
[
{ text: "Cancel", onPress: () => console.log("cancel") },
{ text: "Allow", onPress: () => Linking.openURL("app-settings:") },
],
{ cancelable: false }
);
return;
}
}
"infoPlist": {
"NSLocationWhenInUseUsageDescription": "This app requires location services so..."
"NSLocationAlwaysUsageDescription": "This app requires location services so...",
"NSLocationUsageDescription": "This app requires location services so..."
},
Is there something I’m doing wrong here? Any information would be great.