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
v1.0rc2 breaks on Android #148
Comments
I'm not sure if @outerbound was able to fix their issue or not, but I was having the same problem. @chrisben You are correct that commenting out the three lines added in 9160fb4 solved the issue. This is with:
|
Thanks @ksibod for the feedback! |
Hi, maybe not completely related to this issue, but I was having 404 errors using ImgCache on Android (4.0+) with Cordova 5. After much trial and error I found the solution of adding I could not find anything about this in the CORDOVA.md, so would be nice if someone could add this to prevent anyone else having the same headache :) |
@chrisben No problem! |
Same problem and fixed with @eekilli's solution (I havn't comment out anything), thank you! I think this issue is resolved? |
I confirm adding |
Great, I'm adding this info to the documentation. Thanks @eekilli |
I still observe this issue. I've migrated from imgcache.js#v1.0rc1 to imgcache.js#v1.0.0 and stop working on Android. Works well on iOS. If I do the reverse migration, re-install version 1.0rc1 it works back. <access origin="cdvfile://*" />
<allow-intent href="cdvfile://*" /> Can't see errors in logs [phonegap] [console.log] INFO: ImgCache initialising
[phonegap] [console.log] INFO: LocalFileSystem opened
[phonegap] [console.log] INFO: Local cache folder opened: cdvfile://localhost/persistent/imgcache/
[phonegap] [console.log] INFO: .nomedia file created. |
@elbidone would that be possible for you to track when that regression occurred by testing the successive commits following rc1? You can use dichotomy to speed up the process there. |
Hi @chrisben, I've finally found the issue. After days of investigation (I've tested various versions of phonegap and File plugin), the solution comes from a PhoneGap Community Issue: cdvfile throws 404 not found error in Phonegap 5.1.1 . <access origin="cdvfile://*" />
<allow-navigation href="cdvfile://*" /> If I remove I didn't need to add cdvfile scheme on my CSP or <meta http-equiv="Content-Security-Policy" content="default-src *; style-src self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; img-src * filesystem:;"> Thanks for your reply, this issue was an opportunity do dig deeper into imgcache.js code, congratulations it's very well implemented and commented!! |
@elbidone Thanks for sharing your findings with us, hope this will help other people in the same case. |
Well.... i've this same problem and reverted back to rc1. |
I upgraded to v1.0rc2. Imgcache is totally broken on Android. I checked logs, Why is cdvfile:// coming for Android? I reverted back to v1.0rc1 and things are back to normal.
rc2 log
INFO: ImgCache initialising
INFO: LocalFileSystem opened
INFO: Local cache folder opened: cdvfile://localhost/persistent/ImgCache/
INFO: .nomedia file created.
cdvfile://localhost/persistent/ImgCache/31ce96647d9ebd5b22332116d74232a03bca3fbd.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
cdvfile://localhost/persistent/ImgCache/a797e4a94395220a55f99135604f4f26779eb353.png Failed to load resource: the server responded with a status of 404 (Not Found)
rc1 log
INFO: ImgCache initialising
INFO: LocalFileSystem opened
INFO: Local cache folder opened: file:///storage/emulated/0/ImgCache/
INFO: .nomedia file created.
The text was updated successfully, but these errors were encountered: