π Bug Report
This bug has two wrong behaviors:
First: When checking for location permission status using the permission level parameter, the results are always the same independently of the permission level passed as parameter.
Second: If your project requires permission for always, the systems return denied for all permission levels if you have not granted the always permission. It doesn't differentiate the WhenInUse for the WhenInUse level.
It seems that it is missing the capability to return the propper permission status when "While In Use" is granted. Even if the query (check) is using the LocationPermissionLevel.locationWhenInUse
is used in the method call.
Expected behavior
I understand that the correct behavior would be to return the proper permission granted for permission level checked.
Reproduction steps
You can use the sample application to reproduce the error.
I'm running the tests in a Nexus 4 API 29 emulator.
Check the sequences below to reproduce the error:
Configuration
My AndroidManifest.xml
has the following lines:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
My build.gradle
is set for:
compileSdkVersion 29
...
targetSdkVersion 29
Version: 2.0.5
Platform:
- [ ] :iphone: iOS
- [x] :robot: Android