-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error "No Image Selected" #411
Comments
iOS? Android? both? OS versions? |
Cannot replicate this in Android or iOS. |
I'm getting the same error on iOS using the latest version of Xcode. I'm writing my project in Angular and using Ionic & Cordova to compile. This is my code:
|
Please were you able to find a solution |
@jcesarmobile I am checked it is working if we have only one camera application. But not if many camera application. I am checked Android only. |
It began working for me after I updated the package. I’m still not sure why
the original issue was occurring
…On Sat, Jul 20, 2019 at 11:52 AM Merbin Joe ***@***.***> wrote:
@jcesarmobile <https://github.com/jcesarmobile> I am checked it is
working if we have only one camera application. But not if many camera
application.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#411?email_source=notifications&email_token=AE7BSFKJF2M2OPF6WLSEDJLQAMYEXA5CNFSM4GQJLMGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2NQ6CQ#issuecomment-513478410>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE7BSFKJ7LJISRTIBINLTGLQAMYEXANCNFSM4GQJLMGA>
.
|
@tbaumer22 umm, this is interesting that it works fine now. I still cannot replicate it. cc @janpio |
I had the same error when getPicture was called twice. Be sure your function getpic() is called only once |
"cordova-plugin-camera": "4.1.0", Android 9,10 |
It's not the camera app part - or maybe it's not only that - if you have Please FIX ... thanks! |
Not sure if it's relevant, but here is some lines from
|
I patched it like this: if (resultCode == 0) {
try {
destType = requestCode - CROP_CAMERA;
processResultFromCamera(destType, intent);
} catch (IOException e) {}
} else {
this.failPicture("No Image Selected");
} |
The issue occurs when having multiple camera apps on your device.
|
Hello, I have the same problem with many camera application and no default. |
Sorry for bumping this, but still no solution? This is a big deal since this plugin has no real alternative and - If I'm not mistaking - this is a core plugin maintained by apache ?! So really would be nice to have this fixed - I assume a bunch of users have the same problem with it, and they don't even know because it's not that obvious ... |
Confirm. If preference "AndroidLaunchMode" set to "singleInstance" in config.xml, and phone has several camera apps with no default one, then plugin will return "No Image Selected" error. But if set "AndroidLaunchMode" to "singleTask" it works. |
I am trying to use cordova-plugin-camera using typescript. cameraSuccess = (img: string) => {
|
Same for me! Zebra TC 25 (Android 7.1.2) with default camera App By the way: The first time I used the new camera app, the camera selection dialog came up (Open Camera or Snapdragon Camera. Only this time or Always); I selected Open Camera as a default (Always), but at the first usage, it still didn't work in my Cordova app, because the camera selection dialog seems to break the Cordova Plugin Camera callback. It works since then. If you have the problem
Tested with two versions:
|
this worked for me. |
can you please add the path. |
I'm here in 2021 with the same error. Anyone have clear the status ? Exists a way to solve it ? |
For the Hotfix, I just remove the edit option. but it's a bug "no select image." I need to fix it in the future. |
Anyone find a fix that allows image edit / cropping? |
Same problem here... |
Hi I have a problem that says "No Image Selected" for Xiaomi Pocophone F1 android v10 when the user has installed a third party camera. After uninstalling the third party camera it is able to work. |
Thanks to @cyril23 . We had the same problem on a Honeywell device with Android 10. We use cordova-plugin-camera 5.0.2. Cause of the problem was the incompatibility between snapdragon camera and cordova. The open camera workaround has helped us. |
This workaround only works until Android 11, because Android 11 does not let you select your default camera app anymore. See https://9to5google.com/2020/08/18/android-11-default-camera-app-changes/
Further links:
However, the Snapdragon camera worked again once we've changed our
to
See https://developer.android.com/guide/topics/manifest/activity-element#lmode |
Same issue in 2024, on Android 8, 9 and 10 when at least two photo taking applications are installed on the device. Reproduced on emulators and various physical devices. Seems to happen, imo, because the Same issue on the EDIT : I can confirm than changing the |
It doesn't work when I using the captured image using the camera. It always returns "No Image Selected".
Code 1
Code 2
The text was updated successfully, but these errors were encountered: