Cordova camera plugin unable to read image from google photos return path on Android -


i'm having problem while, 2 weeks or so. problem specific , searching got me nothing unfortunately.

i need capture image cordova camera plugin , works long don't select pic google photos app isn't on device, mean progress bar "downloading photo" shown. when case, returned file url don't work , console shows error net::err_unknown_url_scheme. url is:

cdvfile://localhost/content/com.google.android.apps.photos.contentprovider/0/1/mediakey%3a%2flocal%253ae5404f0b-fc43-4b06-a25f-a5fb2045572a/original/none/1695114231 

things i've tried: 1 - getting base64 image works, bigger images or videos not option because memory usage , crash. base64 usage works both ways: using camera.destinationtype.data_url , filereader reader.readasdataurl(file). filereader technique works, maybe url problem , nothing else.

2 - tried tourl(), .localurl, , original content:// url. of them gives same console error.

3 - tried manually editing url replacing mediakey%3a%2flocal mediakey%253a%252flocal because error unknown url scheme, maybe conflicting crosswalk plugin %3a%2f = ":/". not case, , btw made app crash when tried.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -