cordova - HTML5 how-to read a large catalog of images for offline mobile web application -
cordova - HTML5 how-to read a large catalog of images for offline mobile web application -
i trying create mechanism read big catalog of products offline web aplication.
currently mechanism have in place read images in loading process manifest file offline caching. has severe problems in ios 6, 50mb , there appears broken in back upwards html offline in safari ios6, more in ios5.
however faced multiple problems. filesystem api not supported in mobile browsers, , file api not solve problem of reading files. thinking moving web application phonegap application, not without it's own issues... looking cross platform way of handling offline image gallery.
the first thing, maintain in mind is, phonegap-app hybrid app. can perform native app, can done phonegap.
to more concrete in case:
you can start phonegap-example.
now need service (serverside), can list of images (maybe, json-structure). can read phonegap app.
with filetransfer object can download files devices "harddrive".
now comes part not 100% sure (just 98%). if files stored on device, can show them, using there file://
-url within image
-tag.
but can tested simple app. think not need more ~50 lines of javascript
, prove approach.
you app limited platform limitations , app-stoore conditions.
html5 cordova
Comments
Post a Comment