ACCESS_BACKGROUND_LOCATION permission missing in android

Please provide the following:

  1. SDK Version: 36
  2. Platforms(Android/iOS/web/all): android

I am trying to use Location.startLocationUpdatesAsync on android but it doesnt work when the app is backgrounded. It works perfectly on iOS. I think that it could be not having the background location permission. I took a look at https://github.com/expo/expo/blob/master/packages/expo-location/android/src/main/java/expo/modules/location/LocationModule.java and the permission is not requested there. According to the guide here: https://developer.android.com/training/location/receive-location-updates#inform-user-background-location-requirement the example shows that requesting ACCESS_BACKGROUND_LOCATION is needed in order to work.

2 Likes

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