This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.
[Bug] Permission.LocationAlways reports denied on sdk version < 29 #1142
Closed
Description
Description
When compiling against android SDK 29 the method CheckStatusAsync<Permissions.Location>Always() return denied on devices with android 9 or lower when both permissions ACCESS_FINE_LOCATION and ACCESS_COARSE_LOCATION are allowed.
The permission LocationAlways in android uses a SDK version check at compile time to request ACCESS_BACKGROUND_LOCATION but should use a runtime SDK version check. As ACCESS_BACKGROUND_LOCATION is unkown on android 9 or lower this will always result in denied.
Steps to Reproduce
- Create android app compiled against android SDK 29
- Request permissions.LocationAlways
- Allow location
- Check with CheckStatusAsync<Permissions.LocationAlways>()
- Permission should be granted but is denied
Expected Behavior
Permission should be Granted
Actual Behavior
Permission is denied
Basic Information
- Version with issue:
- Last known good version:
- IDE:
- Platform Target Frameworks:
- iOS:
- Android: 29
- UWP:
- Android Support Library Version:
- Nuget Packages:
- Affected Devices: