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
[ ✔️] I confirm this is a suspected bug or issue that will affect other users
[ ✔️] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[ ✔️] I have read the documentation thoroughly and it does not help solve my issue.
[ ✔️] I have checked that no similar issues (open or closed) already exist.
Current behavior:
I have read through the readme about grantPermission() and successfully worked on Android 13 device(Pixel6a).
But when I tested on Android 11 device(Sony Xperia10 A001SO), grantPermission() never callback.
Is this only about my case or Xperia10 issue? Can you tell me about other Android <= 12 devices are okay?
Expected behavior:
As documented about Android <= 12, grantPermission should success with return value true.
Steps to reproduce:
Screenshots
Environment information
Cordova CLI version
cordova -v 12.0.0
Cordova platform version
cordova platform ls android 12.0.0
Plugins & versions installed in project (including this plugin)
cordova plugin ls 16.1.0
Dev machine OS and version, e.g.
OSX
sw_vers 13
Runtime issue
Device details
Android 11 device(Sony Xperia10 A001SO)
OS details
Android 11
Android build issue:
Node JS version
node -v
Gradle version
ls platforms/android/.gradle 16.13.2
Target Android SDK version
android:targetSdkVersion in AndroidManifest.xml 33
Android SDK details
sdkmanager --list | sed -e '/Available Packages/q'
I have the same issue on Android 10 and 12 as well, and supposedly any Android prior to 13. I think a possible workaround would be to check Android version and bypass grantPermission if it is not needed, i.e. on Android < 13.
Bug report
CHECKLIST
[ ✔️] I have read the issue reporting guidelines
[ ✔️] I confirm this is a suspected bug or issue that will affect other users
Current behavior:
I have read through the readme about grantPermission() and successfully worked on Android 13 device(Pixel6a).
But when I tested on Android 11 device(Sony Xperia10 A001SO), grantPermission() never callback.
Is this only about my case or Xperia10 issue? Can you tell me about other Android <= 12 devices are okay?
Expected behavior:
As documented about Android <= 12, grantPermission should success with return value true.
Steps to reproduce:
Screenshots
Environment information
cordova -v
12.0.0cordova platform ls
android 12.0.0cordova plugin ls
16.1.0sw_vers
13Runtime issue
Android build issue:
node -v
ls platforms/android/.gradle
16.13.2android:targetSdkVersion
inAndroidManifest.xml
33sdkmanager --list | sed -e '/Available Packages/q'
Related code:
Console output
No output
Other information:
The text was updated successfully, but these errors were encountered: