Page 1 of 1

save post data for later posting

Posted: Tue Jul 07, 2015 3:41 am
by M&M

hi,

How can I do this?

Before I call a service that posts data to the server, I just want to do a check if there is network / internet. If there is no connectivity then I want to save it on the device and post it later. What would be a clean and reliable way to do this?

Save it as JSON? separate local storage variables? I have some rough ideas about this but any pointers towards a easier and reliable solution will be great

Thanks,
M&M


save post data for later posting

Posted: Tue Jul 07, 2015 5:58 am
by Illya Stepanov

Hi -

It is better to use local storage for such cases.