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

After selecting photos from gallery, null is returned. #238

Open
fissionessi opened this issue Dec 10, 2020 · 8 comments
Open

After selecting photos from gallery, null is returned. #238

fissionessi opened this issue Dec 10, 2020 · 8 comments

Comments

@fissionessi
Copy link

fissionessi commented Dec 10, 2020

After click "Done", it directly goes to error part and error shows null.
This is options object:
IMAGEPICKEROPTIONS: any = {
quality: 45,
width: 1280,
height: 1280,
maximumImagesCount: 15,
disable_popover: true
}

@prakashmp
Copy link

prakashmp commented Dec 10, 2020

same here too . My ionic version 5 and device poco x2 android 10 OS
My error : After selecting image its showing like this "ErrorThe image file could not be opened"

@jarridlima
Copy link

same here too . My ionic version 5 and device poco x2 android 10 OS
My error : After selecting image its showing like this "ErrorThe image file could not be opened"

The same error here: Android 10, Samsung A10.

After select images, it return "The image file could not be opened"

@srm421
Copy link

srm421 commented Jan 28, 2021

Same issue for me in android 10 and above

@ygyg70
Copy link

ygyg70 commented Feb 27, 2021

Same issue here

@safesky-app
Copy link

Same issue here with Android 10 and Samsung

@ygyg70
Copy link

ygyg70 commented Mar 17, 2021

I was able get it to work by adding this to the android platform section of config.xml:

    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
        <application android:requestLegacyExternalStorage="true" />
    </edit-config>

@elvisgraho
Copy link

elvisgraho commented May 25, 2021

We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.

Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API
Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
Remove the All files access permission from your app entirely
For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.

Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.

@elvisgraho
Copy link

I have another problem, Android filename has '%20' instead of ' ' (blank space) which prevents me from saving the image. I need to manually fileName.replace('%20', ' ') to have the ability to copy the file.

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

No branches or pull requests

7 participants