Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persistence solution for mobile Phonegap / HTML5 App

I am developing a mobile app for Android and iOS using jQuery Mobile. The app will be deployed to Android and iOS devices utilizing Phonegap.

My problem is that I need a local offline data storage mostly for read operations.

I am planning to pull a data set from a web server (MySQL/web service) about once a month (whenever there is new data) and store it for local use on the device.

Now the question, what persistence solution should I use?

There is a tool called lawnchair by a member of the Phonegap team. Anyone tried it? What are the pros and cons? http://westcoastlogic.com/lawnchair/

What about sqlite? Is it working across Android and iOS devices?

THX

like image 718
j7nn7k Avatar asked May 04 '11 21:05

j7nn7k


1 Answers

You could simply use HTML5 Storage / SQL Lite for this. Take a look at: http://diveintohtml5.ep.io/storage.html

I`ve been using Localstorage on iOs and Android without any problems, and since localstorage is backed up by sqllite i think you should be fine. (but i can´t say anything for sure for sqllite on android)

like image 191
Daniel Kurka Avatar answered Oct 15 '22 19:10

Daniel Kurka