Skip to content
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 - android - FileNotFoundException when using source: CameraSource.Photos #524

Closed
WIStudent opened this issue Jul 20, 2021 · 4 comments · Fixed by #545
Closed

Comments

@WIStudent
Copy link

Bug Report

Plugin(s)

@capacitor/camera@1.0.3

Capacitor Version

@capacitor/cli: 3.1.1
@capacitor/ios: 3.1.1
@capacitor/core: 3.1.1
@capacitor/android: 3.1.1

Platform(s)

Android

Current Behavior

Selecting a portrait photo from gallery on a Pixel 3a results in a FileNotFoundException exception

Expected Behavior

The plugin should return the image instead of throwing an exception.

Code Reproduction

import { CameraSource, Camera } from '@capacitor/camera';

Camera.getPhoto({
  source: CameraSource.Photos
});

Additional Context

See also discussion here for more details: #510

@sozonome
Copy link

Hope this temporary workaround helps
ionic-team/capacitor#2060 (comment)

@WIStudent
Copy link
Author

@sozonome You basicly revert the changes made in #510. You could also just downgrade to @capacitor/camera@1.0.2. But keep in mind this reintroduces issue #503, which #510 tried to fix in the first place.

@sozonome
Copy link

True...🤦😅 Sorry

Then we would need another new fix that can tackle both of it...
Hopefully a proper fix comes soon

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants