Flutter : get rejected by using geolocator in both ios and android

441 Views Asked by At

I have flutter app using geolocator, the app rejected in both appStore and playStore, my AndroidManifest.xml contain these permissions :

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

and info.plist containe these :

<key>NSLocationAlwaysUsageDescription</key>
<string>This app needs access to location when in the background.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app needs access to location when open.</string>

the app is rejected from both, in android get these steps to do :

-To continue using location in the background, submit or update your Developer Permission Declaration along with a compliant version of your app in the Play Console for approval.

-If your app is not eligible to access location in the background or does not meet requirements for accessing location in the background, please remove the permission from your manifest and in-app functionality.

in iOS get this :

Please revise the purpose string in your app’s Info.plist file for the location to explain why your app needs access and include an example of how the user's data will be used.

How can I fix this issue, can't understand exactly what must I want to do.

0

There are 0 best solutions below