Issue
Can someone explain what this question actually means and if it's safe to say no this question
Does your app access location in the background in APKs or app bundles targeting Android 9 (Pie) or older (SDK level 28 or lower)?
I do have these permissions in android manifest
- <uses-permissionandroid:name="android.permission.ACCESS_COARSE_LOCATION" /> - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
I DONT have at all ACCESS_BACKGROUND_LOCATION in the android manifest
I ask permission when the app is first installed
Question Is it safe to say that the app does not access location in the background?
Thanks for your time and appreciate your prompt response!!
Update
App Target android MIN Android 6 Target Android 9 ( old app)
Solution
First, in your app's manifest, check for the ACCESS_COARSE_LOCATION
permission and the ACCESS_FINE_LOCATION
permission. Verify that your app requires these location permissions.
Second, If your app targets Android 10 (API level 29) or higher, also check for the ACCESS_BACKGROUND_LOCATION
permission. Verify that your app has a feature that requires it.
Third, looking for use of location access APIs, such as the Fused Location Provider API
, Geofencing API
, or LocationManager API
.
Last, If your app uses an SDK or library that accesses location, this access is attributed to your app. To determine whether an SDK or library needs location access, consult the library's documentation.
Answered By - Guangyu Bai - MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.