Android 2-way sync-ing approach -


i'm developing app list shops around area category. have rest api results returned in paginated mode (page=2, limit=20 etc) , users need login app in order view listing.

i'm thinking incorporate offline 2 way sync app. moment when user logs in first time has connected internet , subsequently once has logged in should able proceed straight main screen eventhough app offline.

user has ability post review offline in suppose should cache post request in db , listen network state changed event? once there's network query in cache , send server.

i understand how can achieved @ high level i'm still new android , not exposed popular libraries out there. wondering there library doing magic me?

i stumble across sync adapter , content provider seems quite complicated beginner. there simpler library can achieve similar results?

also understanding way how works be.. there service periodically poll server changes - , fetch when there's store sqlite. on poll retrieve client changes , send server. when user views listing app retrieve sqlite instead making request server - there no direct interfacing between app , server. can verify if understanding correct?


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -