I'm using phonegap, well, cordova now, to compile and deploy my app to the App Store and Android. I've got some data that I load from .json files into stores. Through the browser it all works 100%. With iPhone I had to use a hack I found on this form for an 'offlineajax' proxy. So my stores load fine now in an iPhone app. I thought Android would be easy as I didn't see anyone having issues, but on deployment to my device, none of my local json stores load. I just get the error:
Uncaught TypeError: Cannot read property 'length' of undefined
I seem to remember getting that when a store didn't load correctly but something is trying to get the number of times in the store.
Anyone have this issue? Is it some sort of path problem? I've tried a bunch of different paths, and none of them worked. Is it not possible to use local json files to load into a store on Android? Do I have to add some sort of permissions? Any help would be great.
Oh, just some info. I know my json is valid, and I know my store is setup correctly as it all works fine in the browser and on the iPhone. Just in case I have run my json through jslint and it is valid. The rest of the application seems to load correctly, my views are showing, images, etc, it is just where a store needed to load, the data doesn't show and I get that error.