DiscordTime / sticky-sessions-android

StickySessions is an app that helps teams to share and store their thoughts through digital-like retrospective sessions
9 stars 6 forks source link

Could not trigger a NoNetworkException even with Airplane mode on #156

Open rodrigoperazzo opened 5 years ago

rodrigoperazzo commented 5 years ago

@ehammo The NoNetworkException (or RuntimeException) is not being captured by Rx Observers when the device has no network.

My bet is that this interceptor should be included on OkHttpClient using addInterceptor instead of addNetworkInterceptor because ConnectionException occurs before the intercept method get called on HttpNetworkInterceptor implementation.

Fixing it would help us provide accurate textual feedbacks to the user.