-
Notifications
You must be signed in to change notification settings - Fork 614
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
Camera plugin 6.0 pickImages limit=1 ignored on Android 13+ #2119
Comments
This issue needs more information before it can be addressed. Please see the Contributing Guide for how to create a Sample App. Thanks! |
I also checked the behavior here in the camera plugin and currently the limit is ignored if it's set to Talking to @mertyldrr it seems to crash when this logic is adjusted to FYI: I also found here that pickImages always calls |
The problem is that PickMultipleVisualMedia do not support maxItems = 1 and the app will crash with the below error, if 1 is provided as the argument to
UPDATE: Reviewing the camera plugin docs and source code more I think that no changes are required in the plugin source code. If the app intends to force selecting only single photo (limit == 1) it should use |
Bug Report
Plugin(s)
@capacitor/camera
Capacitor Version
Platform(s)
Android 13+
Current Behavior
When calling
pickImages()
limit parameter is ignored if provided aslimit: 1
on Android 13+.Expected Behavior
Should consider provided limit
Code Reproduction
The text was updated successfully, but these errors were encountered: