Netinfo showing wrong status when both wifi and cellular data are active
See original GitHub issueEnvironment
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 ->
Reproducible Demo
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:34 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i have the same issue !!!
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.