Ask HN: Sharing Phonegap localstorage data between devices?
- Initial Approach: The content can be stored in the "cloud" or on my server similarly to Dropbox; anyone who have permission can access the data - distribute down to multiple users' devices.
- Second Approach: Since the data is considered very sensitive, it is recommended to be stored on the user's mobile.
1) So a copy of the data can be stored in the primary user's device.
2) The Unique Data ID and list of users (no content) can be stored on a database table in my server as reference.
3) Next user registered, calls upon my server; find the Data ID.
4) Extracts the copy from the primary user's mobile. Sends to the next user.
Problems:
- The primary user's device can be offline / out of battery; The next user will not get a copy.
- Any additional security issues in between?
- Missing any nuances that might make this inappropriate?
- Alternative approach?
5 comments
[ 3.5 ms ] story [ 18.6 ms ] threadUser 2 sends a request to user 1 (who has the data) sending his or her public key and asking for the data encrypted using the public key. User 2 then decrypts the message using his private key and makes his own local copy.
How do you communicate data changes between data holders - a version control problem perhaps?
He also suggest taking a push model (the central storage) rather than pull model (device storage).
I am still debating, and researching. Any other thoughts?
This sounds like an example of Path where you can Like something offline, and will sync when you have internet access.
However doesn't solve the "who stored your data" privacy concern.