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

Invalid URI #8

Closed
mikeres0 opened this issue Feb 3, 2016 · 5 comments
Closed

Invalid URI #8

mikeres0 opened this issue Feb 3, 2016 · 5 comments

Comments

@mikeres0
Copy link

mikeres0 commented Feb 3, 2016

I am trying to console.log(selected.fileUri) as in the example, however this results in an Invalid URI error in the console. I am running on Android. Below is the code I am using.

The full error: Error: java.lang.IllegalArgumentException: Invalid URI: context://media/external/images/media/1072602

exports.pickImages = function(){
    var context = imagepicker.create({
        mode: "single"
    });

    context
        .authorize()
        .then(function() {
            return context.present();
        })
        .then(function(selection) {
            selection.forEach(function(selected) {
                console.log(selected.fileUri);
            });
        }).catch(function (e) {
            console.log(e);
        });
}
@Daxito
Copy link

Daxito commented Mar 8, 2016

+1
I am getting this error too for Android
And from iOS I get:
CONSOLE LOG file:///app/main-page.js:47:15: Error: Failed to load Page from entry.moduleName: ./tns_modules/imagepicker/albums

Any clue?

@mikeres0
Copy link
Author

mikeres0 commented Mar 9, 2016

@Daxito I'll run a test on iOS when I can to see if I get the same error message

@alto1234
Copy link

+1
I get the same error message on iOS as @Daxito
Error: Failed to load Page from entry.moduleName: ./tns_modules/imagepicker/albums

@PanayotCankov
Copy link
Contributor

This should be fine with v0.0.4 could you give it a try?

@Nixon1979
Copy link

Nope this issue still persists with V0.0.4

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

5 participants