- SDK Version: 43.0.0
- Platforms(Android/iOS/web/all): Android
Hi guys,
Having problem with location permission. In my application, I’m asking for foreground location, like this:
const locationPermissions = async () => {
let { status } = await Location.requestForegroundPermissionsAsync();
if (status !== ‘granted’) {
return;
}
let location = await Location.getCurrentPositionAsync({});
setUserLocation(location);
}
Everything is working correctly when I’m testing the app using Expo on device and on Android emulator. But when I build an app for production, for some reasons pop up is never visible. And status is denied by default. When I go to App settings on my mobile, there is no trace of location permission, and there is no option to change location permission manually. As if my app doesn’t recognize that I’m using library for location. Do I need to define permission inside app.json, or permission should be added automatically?
Does anyone have a clue what can be the issue. I would appreciate someone’s help.
Thanks in advance.