You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm. Can you share a Dropbox link to the project? I'll take a look, but if the www folder is the exact same as mine, then I'm not sure what to suggest. Did you test on a device or in the Android emulator?
This bug got just a minor priority. Is there any other reliable method to read text (JSON) files from the application directory? (This is a requirement for an offline app.)
BTW, a reliable way to do that was using RequireJS, however, since cordova version 3.5.0 there seem to be again conflicts when using booth API's together.
BTW, a reliable way to do that was using RequireJS, however, since cordova
version 3.5.0 there seem to be again conflicts when using booth API's
together.
—
Reply to this email directly or view it on GitHub #2 (comment)
.
Activity
cfjedimaster commentedon Aug 2, 2014
You mentioned you copied it into a new project, did you modify the JS code at all?
mariomka commentedon Aug 3, 2014
Yes, I used all of your code.
cfjedimaster commentedon Aug 3, 2014
Hmm. Can you share a Dropbox link to the project? I'll take a look, but if the www folder is the exact same as mine, then I'm not sure what to suggest. Did you test on a device or in the Android emulator?
mariomka commentedon Aug 5, 2014
I tried in both: emulator (Android 4.4.2) and device (Nexus 5 Android 4.4.4).
Cordova version 3.5.0-0.2.6
https://dl.dropboxusercontent.com/u/18204615/testReadlFile.tar.gz
Is a strange behavior...
cfjedimaster commentedon Aug 7, 2014
I can confirm - fails on Android. :(
cfjedimaster commentedon Aug 7, 2014
Ok, I'm at a loss. I'm going to dig around a bit.
cfjedimaster commentedon Aug 7, 2014
Ok, this looks to be an Android bug. :(
https://issues.apache.org/jira/browse/CB-7273
I'm sorry I never tested this (although I thought I did) - I must have assumed it was so simple that I couldn't imagine it not working.
ghost commentedon Aug 16, 2014
This bug got just a minor priority. Is there any other reliable method to read text (JSON) files from the application directory? (This is a requirement for an offline app.)
cfjedimaster commentedon Aug 16, 2014
XHR?
ghost commentedon Aug 16, 2014
XHR for local file system? That's new to me.
What I'm looking for is loading JSON files which are installed with the app on the device, in a directory such as www/json/ .
ghost commentedon Aug 16, 2014
BTW, a reliable way to do that was using RequireJS, however, since cordova version 3.5.0 there seem to be again conflicts when using booth API's together.
cfjedimaster commentedon Aug 16, 2014
By XHR I just mean Ajax. If you look at the source code in the demo, I
think I even mention that.
On Fri, Aug 15, 2014 at 11:15 PM, bardu notifications@github.com wrote:
Raymond Camden, Web Developer for Adobe
Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden
mamrehn commentedon Oct 7, 2014
If anyone is still searching, this is a working solution for files in www/ (or www/videos/ respectively).
(try to set allowFromAll to true if it does not work for you.)