flutter-permission-plugins icon indicating copy to clipboard operation
flutter-permission-plugins copied to clipboard

AndroidManifest need ACCESS_FINE_LOCATION permission?

Open jweidner-mbible opened this issue 5 years ago • 2 comments

Initially when my app called

LocationPermissions().requestPermissions( permissionLevel: LocationPermissionLevel.locationWhenInUse);

No dialog would get displayed to allow the user to grant or deny the permission. But after adding

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

to my AndroidManifest.xml file, the dialog would show up. I didn't see that mentioned in the documentation. This was on a device running Android 6.0.1.

jweidner-mbible avatar Jun 18 '20 19:06 jweidner-mbible

Same here.

janoschp avatar Jul 18 '20 22:07 janoschp

Yes, here too. But I'm getting an exception when the device location service is disabled, the app location permission is disabled, and there is no permission request in the AndroidManifest.xml file. On the call to
final PermissionStatus permissionRequestResult = await LocationPermissions() .requestPermissions(permissionLevel: LocationPermissionLevel.locationWhenInUse);

The docs should call out the need for the AndroidManifest.xml entry explicitly.

wyldebill avatar Jul 19 '20 03:07 wyldebill