M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

save post data for later posting

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

save post data for later posting

Hi -

It is better to use local storage for such cases.

Return to “Issues”