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

Impossible to get the image #20

Open
ishigo1987 opened this issue Apr 27, 2020 · 2 comments
Open

Impossible to get the image #20

ishigo1987 opened this issue Apr 27, 2020 · 2 comments

Comments

@ishigo1987
Copy link

Hello everyone, this code

Photos.image(photo.ID,
    function(data) {
       console.log(data)
    },
    function(error) {
        console.error("Error: " + error);
    });

with the proper photo.id return by this code

Photos.photos( 
    function(photos) {
        console.log(photos);
    },
    function(error) {
        console.error("Error: " + error);
    });

does not works, i've this error Photo ID is undefined

@jguyet
Copy link

jguyet commented May 6, 2020

app.currentAlbums = [];//for getting all pictures from all albums => cordova.platformId == "ios" ? [] : android.allalbumsIds;
Photos.photos(app.currentAlbums, {"offset": 0, "limit": 500, interval: 1 },
            function(photos) {
            }, (err) => {
            console.error(err);
        });```

@jguyet
Copy link

jguyet commented May 6, 2020

if your bug is photo.ID does not work ?
the solution is photo.id in lowercase

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