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

fix(android): make camera work on Android 10 #2559

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

jcesarmobile
Copy link
Member

If saveToGallery was used, the camera plugin tried to write on getExternalStoragePublicDirectory, which is deprecated on Android 10.
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE is also deprecated, so changing the save to gallery code to use MediaStore.Images.Media.insertImage instead.

closes #2555

@jcesarmobile jcesarmobile merged commit 4a1a7b8 into ionic-team:master Mar 11, 2020
@jcesarmobile jcesarmobile deleted the fix-android10-camera branch March 11, 2020 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: Unable to create photo on disk when using Camera.getPhoto
1 participant