question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Netinfo showing wrong status when both wifi and cellular data are active

See original GitHub issue

Environment

info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
    Memory: 2.35 GB / 11.91 GB
  Binaries:
    Node: 14.16.0 - ~\AppData\Local\Temp\yarn--1627121495445-0.5626842957033094\node.CMD
    Yarn: 1.22.5 - ~\AppData\Local\Temp\yarn--1627121495445-0.5626842957033094\yarn.CMD
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version  4.2.0.0 AI-202.7660.26.42.7351085
    Visual Studio: Not Found
  Languages:
    Java: 11.0.10 - /c/Program Files/AdoptOpenJDK/jdk-11.0.10.9-hotspot/bin/javac
    Python: 3.9.2 - ~/AppData/Local/Microsoft/WindowsApps/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz => 0.63.2
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Platforms

Only tested on Android

Versions

  • Android: 11.0
  • react-native-netinfo: 6.0.0
  • react-native: 0.63
  • react: 16.13.1

Description

When wifi and cellular data are switched on at the same time netinfo gives wrong info after split seconds. So far only been able to reproduce on my device (One Plus Nord). It works normally if only one of the network is connect i.e either cellular or wifi only.

Here is a video showing what I explained above ->

https://user-images.githubusercontent.com/42601281/126865121-e5423b49-ce50-4e12-af7c-a9d8c81d783a.mp4

https://user-images.githubusercontent.com/42601281/126876423-e54bb2bc-a6fd-4d2b-97e8-9a1b82454b4e.mp4

Reproducible Demo

https://snack.expo.dev/eRWc1LnlR

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:9
  • Comments:34 (14 by maintainers)

github_iconTop GitHub Comments

5reactions
mohamedanwer123commented, Aug 4, 2021

i have the same issue !!!

4reactions
mikehardycommented, Aug 20, 2021

I don’t personally have maintainer power here. @matt-oakes ? I’ve never seen anyone else commit. Note that even were I to have maintainer power here to merge something: someone needs to make a PR. This is open source. Don’t just sit there and “me too” issues, roll up your sleeves and do work, that’s how it moves forward.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native NetInfo dosen't work after once did work?
When I open my app and disconnect for internet(wifi or cellular both) I got a alert message that's what I want. But when...
Read more >
Network Connection In Your React Native App
type – Returns the NetInfoStateType of the current connection (cellular, wifi, bluetooth, etc..) isConnected – Boolean value that tells if there ...
Read more >
@react-native-community/netinfo - npm
React Native Network Info API for iOS & Android. Latest version: 9.3.7, last published: 18 days ago.
Read more >
Check your network connection status - Microsoft Support
Windows 11 lets you quickly check your network connection status. Select the Start button, then type settings. Select Settings > Network & internet....
Read more >
Network Monitoring Tools - Stanford University
HipLink is a one or two-way wireless data and messaging solution that enables software used for network monitoring, field force automation, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found