Problem with Location permission

  1. SDK Version: 43.0.0
  2. 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’) {
let location = await Location.getCurrentPositionAsync({});

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.

Hey @cutplatform I’d recommend looking at the debugging production errors/issues docs: Debugging - Expo Documentation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.