collaborne / cordova-gallery-access Goto Github PK
View Code? Open in Web Editor NEWReads photos & videos from an album (e.g. Camera Roll) and returns them as dataURLs
License: MIT License
Reads photos & videos from an album (e.g. Camera Roll) and returns them as dataURLs
License: MIT License
Is it possible to access to the original picture and not only the thumbnail ?
I am getting the following error
Cannot find plugin.xml for plugin "cordova-gallery-access". Please try adding it again.
Hi,
Is this plugin working with an old UIWebWiew (not WKWebView) ?
Since you're talking about the hard time you had with WKWebView, just wanna be sure its working with the old UIWebView before trying this plugin.
Thanks a lot
The error message is: "Error: Failed to fetch plugin https://github.com/SuryaL/cordova-gallery-api.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect."
The getMedia
method is never resolving nor rejecting the promise. Works fine in Android, the issue occurs only in iOS (tested in 11.4).
// getMedia(album)
return new Promise((resolve, reject) => {
galleryApi.getMedia(
album,
items => resolve(items),
e => reject(`Failed to load items for album ${album.id}: ${e}`)
);
});
I inspected the code, but found nothing relevant. Anyone has the same issue?
Hi,
I've read your blog posts, thanks for sharing it and open sourced your code. I'm totally stucked with the same issues your encountered on ios : I can't display my pictures in a WKWebView.
I yet use a library for permissions request and gettings phone pictures and i try to use the trick you explain in your blog post : the url to use for img should be "/local-filesystem${item.thumbnail}?cdvToken=${cdvToken}". I don't see in your plugin code, neither in cordova-gallery-api where cdvToken is used. I don't get how the local webserver translate this url to something linked to the picture. Is it done by wkwebview or local server plugin ?
My questions :
Have a great day
Dorian
I am using this plugin on cordova to setup a gallery app , installed gallery-api and cordova-gallery-access.
Always getting require is not defined if I called function , anyone can help me out ?
Cordova 8.1.1
Hi,
I really tried my be(a)st and couldn't get past this Not allowed to load ...
I am using IOS 11.3 with [email protected] with MeteorJS
Couldn't get the photos on an Android 5.1 either (with the same code at the same time) but didn't get into debugging on this side.
Hi !
Most of the time, depending on the mobile AND sometimes after some days/months of utilisation, pictures are not the most recent ones (chronologically sorted) but appeared to be retrieved kind of randomly from the past (but in order).
I am guessing it's more about the cordova plugin, but do you have any ideas what can cause this ? Or have ever experienced this ?
I am doing :
cordovaGallery.load({ count: 3 })
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.