-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permissions not popping up #124
Comments
me too brother. :( |
We've had no problems checking or requesting the CAMERA permission using this plugin and are also targeting SDK 13, and have tested this successfully on real Android 11, 12 and 13 devices, where we've then been able to access the camera after granting the permission. Here are our relevant API level settings from config.xml:
Possibly if you don't have it, you may want to try changing the compileSdkVersion to 33 as well as the targetSdkVersion? Not sure if that will help but wouldn't hurt to try. Our minSdkVersion is just to limit our users to Android 11 or higher as we don't want to support earlier versions than that. We also have these settings in the config.xml, that you will also need for the camera permission:
Editing to add that our Cordova Android platform is v12.0.1. |
Hi ppl, Any workaround about this ? But if i just ignore this plugin and allow android to handle it by itself, popup is showing and everything goes well. My assumption is that maybe Android changed something in android 13 that now, prevent this plugin to show permission asking popup. But im no native dev. Any more ideas about this ? @NeilCresswell Are you sure that permissions werent granted before you tested your implementation ? |
Hi, i am facing the same problem with request permission (permission.WRITE_EXTERNAL_STORAGE) in Android 13,target SDK 33.It returns haspermission false always without asking permission pop. It's working fine in Android 12 or below. I have already upgraded my target and compile SDK version to 33 . Any solution or workaround? |
android-targetSdkVersion:33 I have the same problem. |
Same problem here. Any workaround about this ? android-minSdkVersion" value="22" |
Same problem, no error. Cordova android 10.1.2 |
Hi all, just in case this helps someone:
After that, I received aapt error while building, the solution to that was to modify the All credit goes to Neil and this post: Thank you guys for solving this headache for me. |
Hi, thank you all for participating in this beautiful plugin. I would appreciate it if you guys can help me out here. I'm using ionic 7 on android 13 with this plugin. However, the when trying to read a file from the External filesystem, i get this error: 'Error launching app update Please grant read external storage permission'. Then when I try to run this code: ` await permissions.checkPermission(permissions['READ_EXTERNAL_STORAGE'], async checkResult => {
}, err => { });` I get
Same result with REQUEST_INSTALL_PACKAGES. I have no idea what to do here, I've been stuck on this for 2 days now straight. Any insight or help would be greatly rewarded with appreciation :3 |
READ_EXTERNAL_STORAGE doesn't exist from API level 33, you can't request it and system will not grant it. External storage is complicated from Android 13 - https://developer.android.com/about/versions/13/behavior-changes-13#granular-media-permissions |
Sorry guys for late , here is the solution
.... |
I'm using permissions.requestPermission(permission, successCallback, errorCallback); but nothing shows up. I an on android 13 and SDK 33.
Has a success callback but shows hasPermission: false without showing ability to grand permission.
Works fine in Android 12.
The text was updated successfully, but these errors were encountered: