Unanswered: How to do local storage and transfer on network available in ST2?
Unanswered: How to do local storage and transfer on network available in ST2?
Hi,
I have just discovered Sencha Touch 2 and would like to build some demos for my colleagues.
I am familiar with HTML5 and JavaScript and have web forms which save data locally (in localstorage) and transfer to a server on request or when a network is present.
I would like to try to achieve this on Android and iPhone using ST2. I've seen some local storage proxy code but have not come across network tools so far.
I appreciate there is a lot of online documentation and demos but I need to focus on this specific requirement and can only sneak limited time so would appreciate any pointers.
Does the data upload have to be in the same webapp as the data gathering?
Does the data upload have to be in the same webapp as the data gathering?
I'd like the users to enter data into forms and have it store locally.
At the end of the data gathering exercise, I'd like the researcher to be able to upload the data to a server (and when successful remove from the device).
So that the end-user does not see the upload option I'd like to have a second app - on the same domain - access the local store and upload.
However, when I have tried this with HTML5 and JavaScript on an iPhone this breaks as soon as <meta name="apple-mobile-web-app-capable" content="yes" /> is used and the icon is saved to the home screen.
Everything you've said is possible in ST2. I think the best idea would just be to get stuck in with touch 2, generate a new app and see what problems you come up against. There's loads of tutorials and guides included in the download. Touch 2 will add the necessary meta tags without breaking the app.