You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Describe the bug*
When i restart the router, i get notified that connection is lost but i
never get notified when it's restored.
*To Reproduce*
Steps to reproduce the behavior:
The code:
ReactiveNetwork.observeNetworkConnectivity(applicationContext)
.flatMap { network ->
ReactiveNetwork.checkInternetConnectivity()
.toObservable()
.map { network.state() to it }
}.map {
val (networkState, isInternetAvailable) = networkInfo
return when {
isInternetAvailable -> // connected
networkState == NetworkInfo.State.CONNECTING -> // connecting
networkState == NetworkInfo.State.DISCONNECTED -> // disconnected
else -> // disconnected
}
}.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe({ /* ... */ }, { it.printStackTrace() })
1. run the app (using WIFI, haven't tested it with data)
2. restart the router (the app never gets notified when connection is
restored)
*Smartphone (please complete the following information):*
- Device: Huawei Y7 Prime 2018
- OS: Android 8
- Library Version: 3.0.3
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#357?email_source=notifications&email_token=AAFJYF2R2KBU4YDWXHYANCLQAWVLXA5CNFSM4IFYLNCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HAUEJAA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFJYF37P56YTC3RVEH46Y3QAWVLXANCNFSM4IFYLNCA>
.
Describe the bug
When i restart the router, i get notified that connection is lost but i never get notified when it's restored.
To Reproduce
Steps to reproduce the behavior:
The code:
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: