For the unauthorized case (401), you can check the status code.

For reachability, the Replication class has a status property which can be 
Stopped, Offline, Idle or Active.

You can read more about it here 
http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/replication/index.html#observing

- James

On Friday, 20 March 2015 10:08:24 UTC, SeanDev wrote:
>
> Hi all,
>
> In mobile apps reachability is always a problem.
>
> I can see there be failure of replication of 401 unauthorized and fail to 
> connect to server and so on.
>
> Is there a class we can use to monitor the failures of the network or the 
> authroization status?
>
> Thanks in advance.
>
> -Sean
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/9e8f36de-07da-428c-a10c-fe2928fa41dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to