dimanche 1 novembre 2015

What is the best approach to Sync server data in android app?

I am building an android application, which involves listing details of product. These products will be 500 to 1000 items and evolve over time, with changes from backend server.

To avoid fetching this large data from server each time to display list, need to persist in local database and display by querying from database.

For persisting data, i explored the following ways available.

  1. Native sqlite (sync using sync adapter framework)
  2. Realm (couldn't figure how to sync)
  3. Couchbase lite (has it's own sync gateway)

But yet couldn't come into any conclusion for best possible approach.

Since the data is large and we need to have offline access to data through app, syncing data becomes very important. I am still learning these things.

Can someone please guide me in the right direction to design storing data and syncing data when there is some change in backend?

Aucun commentaire:

Enregistrer un commentaire