-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Selecting photos doesnt work on Android Q #309
Comments
Setting https://developer.android.com/reference/android/provider/MediaStore |
Hi @davecoffin , I've checked the demos in this repo and all of them works fine with the Android Q 10.0 (Api 29). Can you share a bit more details about the device/emulator you are using and a sample project where we can reproduce the mentioned issue. |
Closing due to inactivity |
For anybody that finds this, @DickSmith pointed this out: Fun fact, if you want nativescript-imagepicker to work on Android 10, gotta target it (API 29) and add this to the application declaration in the manifest:
@DimitarTodorov is that what I was missing? |
I have the same issue and i am running it on a Xiaomi Mi 9 if that helps. |
the above mentioned fix works on xiaomi mi 9 |
@leo00723 yes it works. but using legacy storage is not a fix but rather a work around |
Any updates on this? I have faced same issue... |
This issue still seems to be present. |
Still experiencing this issue |
This comment was marked as abuse.
This comment was marked as abuse.
Thank you. But this seems to be a temporary solution, right? The plugin needs to be adapted to use scoped storage in the future when targeting Android 11 or newer. |
When can the updates be expected? |
any solution for this issue |
I think I have solved the problem. In app.gradle, just add: |
It's no longer allowed to use |
any update on this issue for NS 6? we are not able to open see gallery images on android 11 |
I think this plugin is deprecated and not longer supported in favor of https://github.com/NativeScript/plugins/tree/master/packages/imagepicker |
All latest...
Selecting a photo returns this error:
Asset '/storage/emulated/0/DCIM/Camera/IMG_20190920_122446.jpg' cannot be found.
And doing something like this:
var img = imageSourceModule.fromFile(selected.android.toString());
results in this error:
Error: java.io.FileNotFoundException: /storage/emulated/0/DCIM/Camera/IMG_20190920_122446.jpg: open failed: EACCES (Permission denied)
Does this have something to do with the new Scoped Storage Framework?
The text was updated successfully, but these errors were encountered: