I work for an insurance company. They have a contact database that gets pushed to the field agents by Lotus Notes. We're trying to move away from Lotus Notes, but we first have to remove our dependency on it.
It has been suggested that a HTML5 solution could provide offline access to agent contacts and be used to sync changed from the server down and the client up.
It is my understanding that the SQL storage capabilities of HTML5 aren't fully implemented (IE and Firefox apparently don't support yet per one site I read.) LocalStorage may not be robust enough for the data we need to sync since the size limit is relatively small.
Is HTML5 a feasible solution to this issue or should we track down some kind of syncing solution? (I've been reading about one from the Ubuntu folks and Microsoft's, as well.)
Thanks!
-
1I found this chart. It's kind of handy! caniuse.com/sql-storageDarkwater23– Darkwater232013年02月15日 19:50:47 +00:00Commented Feb 15, 2013 at 19:50
-
Is there a reason why you're creating something like this on your own? There are many products that manage contacts and distribute them to users. Salesforce comes to mind. Their next version of their mobile app should have off-line capabilities.JeffO– JeffO2016年02月24日 18:45:04 +00:00Commented Feb 24, 2016 at 18:45
-
Have you looked into pouchdb?Esben Skov Pedersen– Esben Skov Pedersen2016年02月24日 20:10:13 +00:00Commented Feb 24, 2016 at 20:10
2 Answers 2
Check out caniuse.com. For WebSQL, it's deprecated:
enter image description here
However, if key-value stores are an option that might do:
enter image description here
-
1To be fair, all that chart says is that Microsoft and Mozilla never implemented WebSQL. Wikipedia says that the working group stopped working on the specification because nobody bothered to come up with implementations that competed with SQLite. IndexedDB does a bit better than WebSQL, if you don't mind it being buggy on a Mac.Robert Harvey– Robert Harvey2016年02月24日 16:04:45 +00:00Commented Feb 24, 2016 at 16:04
In short: Your question seems to be discussed with pros and cons in the following SO posts. Look at the following references:
- Best way to synchronize local HTML5 DB (WebSQL Storage, SQLite) with a server (2 way sync)
- Offline storage - db sync
- How to synchronize HTML5 local/webStorage and server-side storage?
I would add my 2 cents with pointing to the security concern of letting collected data to remain un-encrypted in local storage. Because the way how data is collected in a device/tablet may have some personal/commercial sensitive data whose storage should comply with varies compliance rules.
-
2Encryption is the very next requirement. The one after that is remote wiping of data. :PDarkwater23– Darkwater232013年02月15日 20:46:59 +00:00Commented Feb 15, 2013 at 20:46
-
Warning from a security non-expert: Even encrypted data on the client side is at risk of being stolen. It's actually arguably easier to steal confidential data on the client's machine than data going over the wire.Jeffrey Sweeney– Jeffrey Sweeney2016年02月24日 17:59:46 +00:00Commented Feb 24, 2016 at 17:59