[yes ] I confirm this is a suspected bug or issue that will affect other users
[ yes] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[ yes] I have read the documentation thoroughly and it does not help solve my issue.
[ yes] I have checked that no similar issues (open or closed) already exist.
Current behavior:
In Android 11:
If I call this.diagnostic.requestLocationAuthorization(this.diagnostic.locationAuthorizationMode.ALWAYS), the response is alway denied and I do not see the permission prompt at all.
Expected behavior:
I expect to see the first location permission prompt.
call below api in your cordova project using android 11 and higher:
this.diagnostic.requestLocationAuthorization(this.diagnostic.locationAuthorizationMode.ALWAYS)
Steps to reproduce:
Screenshots
Environment information
Cordova CLI version
10.0.0
Cordova platform version
android 9.0
iOS 6.1.1
Plugins & versions installed in project (including this plugin)
cordova.plugins.diagnostic: 6.0.4
Dev machine OS and version, e.g.
OSX
Mac OS 11.6
Windows 10
winver
Runtime issue
Device details
Android 11 emulator and real device SDK 30
OS details
Android build issue:
Node JS version
node -v
Gradle version
ls platforms/android/.gradle
Target Android SDK version
android:targetSdkVersion = 30 in AndroidManifest.xml
Android SDK details
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue:
Node JS version
v12.14.1
XCode version
Related code:
insert any relevant code here such as plugin API calls / input parameters
this.diagnostic.requestLocationAuthorization(this.diagnostic.locationAuthorizationMode.ALWAYS)
Console output
console output
```
// Paste any relevant JS/native console output here
```
Bug report
CHECKLIST
[yes ] I have read the issue reporting guidelines
[yes ] I confirm this is a suspected bug or issue that will affect other users
[ yes] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[ yes] I have read the documentation thoroughly and it does not help solve my issue.
[ yes] I have checked that no similar issues (open or closed) already exist.
Current behavior:
In Android 11:
If I call this.diagnostic.requestLocationAuthorization(this.diagnostic.locationAuthorizationMode.ALWAYS), the response is alway denied and I do not see the permission prompt at all.
Expected behavior:
I expect to see the first location permission prompt.
call below api in your cordova project using android 11 and higher: this.diagnostic.requestLocationAuthorization(this.diagnostic.locationAuthorizationMode.ALWAYS)
Steps to reproduce:
Screenshots
Environment information
10.0.0
android 9.0
iOS 6.1.1
cordova.plugins.diagnostic: 6.0.4
Mac OS 11.6
winver
Runtime issue
Android build issue:
node -v
ls platforms/android/.gradle
android:targetSdkVersion = 30
inAndroidManifest.xml
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue:
v12.14.1
Related code:
Console output
console output
``` // Paste any relevant JS/native console output here ```**Other information:**