Permissions.askAsync(Permissions.LOCATION) never resolves on iOS standalone app, and causing app store rejection. Works in iphone simulator, when ran via expo client on iphone device, as well as android devices.
the first alert is seen, but then no alert to ask for permissions nor the one after saying the status.
It’s hard to say without more info on the code. If it works in dev then it should work in prod unless you added some extra native libraries.
You can debug how the app runs in prod by running
exp start --no-dev --minify
Can you try it with this and let me know if any errors surface.
It’s also worth noting that this permission hasn’t changed in a bit and these incidents seem isolated.
I posted too much code on that original post, I apologize for that. The error doesnt happen when running the app via the expo client (and everything worked as expected when running it in prod mode with the above command). It only happens in iOS standalone apps. There’s also added no native libraries, only JS.
In this code:
async function locationPermission() {
Alert.alert(
'ABOUT TO ASK FOR LOCATION PERMISSION',
'',
[
{text: 'Yup', onPress: () => null},
]
)
let { status } = await Permissions.askAsync(Permissions.LOCATION)
Alert.alert(
'LOCATION PERMISSION STATUS',
status,
[
{text: 'Yup', onPress: () => null},
]
)
}
let { status } = await Permissions.askAsync(Permissions.LOCATION) never resolves and hangs indefinitely. If this permission hasnt changed on expo’s side, could this be related to the newer iOS version?