Closed aritchie closed 2 years ago
Ensuring Permissions.LocationWhenInUse.CheckAsync on Android returns Restricted if only coarse permission is granted
LocationWhenInUse & pulled out CheckSelfPermission out of the loop so it can be used for individual checks
Changed:
Since CheckSelfPermission was moved to DoCheck, BasePlatformPermission.CheckStatusAsync had it's loop code pointed at new method.
LocationWhenInUse overrides CheckAsync now
If AccessFineLocation is denied, but AccessCoarseLocation is granted - PermissionStatus.Restricted is now returned
main
Seems to work!
I made a small test project for this here: https://github.com/Cheesebaron/EssentialsLocationPermissionTest
Thanks so much @Cheesebaron @aritchie <3
Description of Change
Ensuring Permissions.LocationWhenInUse.CheckAsync on Android returns Restricted if only coarse permission is granted
Bugs Fixed
API Changes
LocationWhenInUse & pulled out CheckSelfPermission out of the loop so it can be used for individual checks
Changed:
Since CheckSelfPermission was moved to DoCheck, BasePlatformPermission.CheckStatusAsync had it's loop code pointed at new method.
LocationWhenInUse overrides CheckAsync now
Behavioral Changes
If AccessFineLocation is denied, but AccessCoarseLocation is granted - PermissionStatus.Restricted is now returned
PR Checklist
main
at time of PR