You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
🔙 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:
The text was updated successfully, but these errors were encountered: