-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Capacitor Camera throwing "Unable to create photo on disk" #2013
Comments
UPDATE: issue happens only when |
Error still continues in the latest versions, any update? |
Same here running on: { } |
What's the solution to this error? Still exists with |
@hembachrterran were you able to resolve this issue? I have this issue now in our Ionic 5 application using the same version as you are. |
As I remember this problem was solved by ask CAMERA permission in app.component.ts:
and you have to add android:requestLegacyExternalStorage="true" and
to AndroidManifest.xml. Pay attention to the target Android version in your app, after Android 10 (API level 29) was a storage update in Android, and you can not use the requestLegacyExternalStorage variable with higher target level, more info: |
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 Capacitor, please create a new issue and ensure the template is fully filled out. |
Description of the problem:
The camera plugin works great on Android 8+ devices, but for some reason, it throws the below error on a Samsung Tab A(SM-T280)
Affected platform
OS of the development machine
Other information:
Capacitor version: 1.2.1
node version: 10.16.3
npm version: 6.11.3
Steps to reproduce:
Logcat
The text was updated successfully, but these errors were encountered: