Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locationAlways permission is denied when Android version < VERSION_CODES_Q in v9.0.1 #793

Closed
1 of 2 tasks
emarwil-cr opened this issue Feb 16, 2022 · 1 comment
Closed
1 of 2 tasks

Comments

@emarwil-cr
Copy link
Contributor

🔙 Regression

Version 9.0.1 has a breaking change. On devices with Android 9 / Pie and earlier, the locationAlways permission can never be granted. In version 8.3.0, locationAlways is granted when any of the 3 location permissions is allowed by the user.

Old (and correct) behavior

In version 8.3.0 of flutter-permission-handler, run the example app on a device with Android 9 / Pie. Tap on the any one of the three location permissions (location, locationWhenInUse, or loctionAlways) and then tap "Allow" in the system permission dialog. Observe that the permission status is PermissionStatus.granted. Now tap on the other two permissions and observe that no dialog is displayed and each permission shows PermissionStatus.granted.

Current behavior

In version 9.0.1 of flutter-permission-handler, run the example app on a device with Android 9 / Pie. Tap on the Permission.locationAlways and observe that no permission dialog is displayed and the permission remains Permission.denied. Tap on the Permission.location or Permission.locationWhenInUse and then tap "Allow" in the system permission dialog. Observe that the permission status is PermissionStatus.granted. Tap on the Permission.locationAlways again and observe that the permission is unchanged from PermissionStatus.denied.

Reproduction steps

As described above.

Configuration

Android device (or simulator) running Android 9 / Pie.

Version: 9.0.1

Platform:

  • 📱 iOS
  • 🤖 Android
@emarwil-cr emarwil-cr mentioned this issue Feb 16, 2022
6 tasks
@mvanbeusekom
Copy link
Member

This issue is fixed in version 9.1.0 of the permission_handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants