Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does isConnected property check connectivity for iPv6 also ? #498

Open
dineshswamy opened this issue Sep 23, 2021 · 2 comments
Open

Does isConnected property check connectivity for iPv6 also ? #498

dineshswamy opened this issue Sep 23, 2021 · 2 comments
Labels
question Further information is requested

Comments

@dineshswamy
Copy link

What is the issue ?

One of our users has an ipv6 mobile network and ipv4 wifi network. When the user uses the phone in wifi it works fine as expected but when he connects to ipv6 network the app shows the user is offline. The app determines the user is offline using the following function.

NetInfo.addEventListener((state) => {
        if (!state.isConnected) {
  // Show that device is offline
}}

I was wondering whether this check works as expected for ipv6 as well. Thanks for the help

packages and versions used:

"react-native": "0.64.1",
"@react-native-community/netinfo": "5.9.6",
@dineshswamy dineshswamy added the question Further information is requested label Sep 23, 2021
@mikehardy
Copy link
Contributor

@dineshswamy do you have device info? Have you considered that future releases may have interesting fixes for this issue? (e.g. #431 in 5.9.10)

Please update to current stable and see if this still reproduces, then provide more information about the device so someone may attempt to reproduce, until then this is not actionable unfortunately

Once that is done however, if it still reproduces, the next step is to reach into node_modules and instrument the code, print out the network status as well as any parameters prior to any native API calls, then the return values from any native API calls to the system and see what they say - that would locate the bug then a PR could fix it...

@dineshswamy
Copy link
Author

Thanks, @mikehardy for the quick reply. Will try this and post the results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants