RequestFactory and offline clients

61 views
Skip to first unread message

Gilad Egozi

unread,
Mar 8, 2012, 5:21:02 AM3/8/12
to google-we...@googlegroups.com
Hello,

I'm trying to create an application which is able to work even when network is down.
The idea is to store data returned from RequestFactory on the localStorage, and to use localStorage when network isn't available.
My problem - I'm not sure exactly how to differentiate between server errors(5XX, 4XX, ...) and network errors.
(I assume that on both cases my Receiver.onFailure() would be called, but I still don't know how to identify this situation)

Any help would be appreciated,


Thanks,
Gilad.

Thomas Broyer

unread,
Mar 8, 2012, 6:53:57 AM3/8/12
to google-we...@googlegroups.com
Throwing out ideas:
Reply all
Reply to author
Forward
0 new messages