It may sound as if I am rambling (which I am anyways)
So I am thinking to create an android app which basically query my server to fetch some data based on user criterions and display it to the user (think of Yelp for example). User can push data also to the server (like ratings, comments etc.)
I want:
- I want the app to be available in offline mode also (i.e. no network connection)
I can do it because:
- Server side data will not be refreshed that frequently so no point in redirecting every request to network. For client updates however, (like when users gives a rating) I am not sure what to do. Should I immediately send it to the server or persist it in my local datastore and send it in periodic fashion?
How I am thinking of doing it (this is where I am confused)
- Thinking of using phone storage to store data in SqlLite database?
- How can I sync local db with cloud datastore? So that whenever connects to network or after a certain timeout period both client and server are in sync?
- What should I use for cloud storage? How about Google App Engine?
- How do people generally approach it? Looks to me common questions.