Skip to content

Android 10 scoped storage fix#220

Open
scr34m wants to merge 2 commits into
Telerik-Verified-Plugins:masterfrom
scr34m:android-10-fix
Open

Android 10 scoped storage fix#220
scr34m wants to merge 2 commits into
Telerik-Verified-Plugins:masterfrom
scr34m:android-10-fix

Conversation

@scr34m
Copy link
Copy Markdown

@scr34m scr34m commented Sep 10, 2020

This change uses MediaStore interface to query camera images.
Tested in emulator on an Android 10 device, works correctly.

@scr34m
Copy link
Copy Markdown
Author

scr34m commented Sep 16, 2020

Bounds check was used with ImageDecoder now changed to use meta data from MediaStore to avoid reading in the image, much faster now.

Added a missing function to set sample size with ImageDecoder.

@saviour2008
Copy link
Copy Markdown

could you tell me if I install version 2.3.3 in ionic build, does the 2.3.3 version include the Android 10 fixed?@scr34m

@scr34m
Copy link
Copy Markdown
Author

scr34m commented Oct 15, 2020

I'm currently using rev. master@ecf2c79366ac9a69c89a47c5799cde4205d7d9c9 so i can't tell you more.
But the changes in manifest xml not solve the issue, my fix does.

@uaza
Copy link
Copy Markdown

uaza commented Mar 5, 2022

The error that no pictures can be selected actually only occurs with Android 10. Android 9 and smaller or Android 11 and larger already worked without this fix.

I have retested this fix on an Android 10 (Huawei P30 lite). Would be great if this pull request could be merged.

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.

3 participants