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

Vue Returned data is empty #7

Open
tingfong214 opened this issue Dec 19, 2019 · 1 comment
Open

Vue Returned data is empty #7

tingfong214 opened this issue Dec 19, 2019 · 1 comment

Comments

@tingfong214
Copy link

When using nativescript-rad-imagepicker

 let opts = {
    doneButtonTitle: 'done', // only affects ios
    noImagesTitle: 'No Images', // only affects ios
    allowVideoSelection: false, // only affects ios
    imageLimit: 1
}
radImagepicker.pick(opts).then((selectedImages) => {
    if (selectedImages) {
        // Do something with selected images
        // currently 
        // the image will be of type nativescript image source
        // tns-core-modules/image-source

       console.log("data", JSON.stringify(selectedImages))
    }
});

After choosing image, the returned data (selectedImages) is :

'data' '[{"_rotationAngle":0,"android":{}}]'

It is empty in the object android. Hence, no image can be shown or read in app.

May I know is this how it work?

@Lavhe
Copy link

Lavhe commented Apr 18, 2020

I got a fix for this you have to add

<application
.....
    android:requestLegacyExternalStorage="true">

In your androidManifest.xml , this bug is due to targeting API 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

No branches or pull requests

2 participants