Skip to content

Google pixel wifi change event is received in 30 sec delay #460

Description

@seladev

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:

  1. Turn Off Wifi
  2. Open activity \ fragment that with the specific code
  3. Turn On Wifi in the device
  4. observe subscribe in observeNetworkConnectivity
  5. observe Wifi connection in the Device
  6. See when the Wifi connection success and when observeNetworkConnectivity subscribe received
  7. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions