android - What if request is sent and response ia not recieved -


i making android application have scenerio have got data . there field called sync becomes true when response server. request sent server , data stored on server dont response , nxt time data sync false sent server resulting in duplication.. app used in multiple devices cant have local database field primary key on server. how can handle thing app side.

i using sugar orm database , retrofit rest api

any appriciated.

you should waiting confirmation of receipt of data before end task, if no response received can either try again or cancel sending.

sending data , not awaiting response not ideal!


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -