-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
After taking a picture, I get an error 'cancelled' #225
Comments
Have the same issue:
Also, when tried to select some image from gallery, get another error: |
Still don't know the reason for this to happen but the only thing that worked for me was to downgrade to Android 8.0 (API 26) Pixel 2 and I've also selected |
@dengyy-cq Thanks for reply, but your solution didn't help. |
Hi @butaminas , Can you please share a sample project with the mentioned setup where we can reproduce and eventually investigate and solve the issue you are observing. |
Same issue |
Hey! I had the same problem, solve it with this solution : Found here |
Same issue here. Tried your solution @Luonnotar , but it does not build. BUILD FAILED in 15s |
pull request for fix: #237 |
This issue makes camera plugin unable to work under Android 10 (API 29+) because API 29 uses scoped storage. For making your application compatible with current version of plugin, you can do 2 things to fix this: a) put
or: b) Add see https://developer.android.com/training/data-storage/compatibility |
@Gondy Thank you, that fixed the issue for me. For anyone lurking here, my emulator was functioning fine, but my physical device would give this error right after confirming the photo was OK:
adding the targetSdkVersion 28 to my app.gradle resolved this for my physical device. |
Which platform(s) does your issue occur on?
I'm developing an app on nativescript-vue and using this particular package on a onShowFileChooser event by extending the WebChromeClient.
The idea is to make the camera to show when clicking a
<input type='file' />
button on a webview.First of all, I request user permissions on load like this:
Then on the onShowFileChooser I do something like this:
Whenever I click the file input field in a webview the camera app appears and I can take a picture. After taking the picture and clicking the check mark to confirm, I get back to my app but in the console, I see:
I've tried solution, mentioned here but this wasn't the case.
Why do I get this error?
Besides that, anyone has any idea how to actually return the image to the input field?
Thanks!
The text was updated successfully, but these errors were encountered: