I'm using subscription in Apollo with Rxjava2 as follow
Rx2Apollo.from(someApolloCall)
.observeOn(schedulerProvider.io())
.subscribeOn(schedulerProvider.ui())
.subscribe({
// on success
}, {
// on failure
})
Everything is working well when the network is ok, however when losing connectivity, subscription fails and it doesn't reconnect again?
how should I reconnect in similar scenarios,
I've been trying using rxjava operation retryWhen{}
but in vain!
thanks in advance.