-
-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Labels
Description
Describe the bug
I am using this code for listening to wifi changes -
ReactiveNetwork.observeNetworkConnectivity(context)
.subscribeOn(Schedulers.io())
.filter(ConnectivityPredicate.hasType(NetworkCapabilities.TRANSPORT_WIFI))
.observeOn(AndroidSchedulers.mainThread())
.subscribe({
logWarning("###### change network = $it")
},{ })
I am testing the code in different devices and its work,
but in Google pixel 3a i am receiving the wifi concavity change event in 30 seconds delay.
In Samsung device i am receiving the wifi concavity change event immediately
To Reproduce
Steps to reproduce the behavior:
- Turn Off Wifi
- Open activity \ fragment that with the specific code
- Turn On Wifi in the device
- observe subscribe in observeNetworkConnectivity
- observe Wifi connection in the Device
- See when the Wifi connection success and when observeNetworkConnectivity subscribe received
- Wifi connect event received after 30 seconds from the device Wifi connection
Expected behavior
The Wifi connect in the same time
Smartphone (please complete the following information):
- Device: Google Pixel 3a
- OS: Android 11
- Library Version: 3.0.1