-
Notifications
You must be signed in to change notification settings - Fork 271
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
Seems like NetInfo.isConnected.fetch() bug in iOS has been resolved in RN 0.55.x #107
Comments
So to confirm is this library currently broken on iOS? This is my first time using it and have been pulling my hair out all day trying to get this going via the simulator and a device. Then I tested on an Android device / simulator and everything was working as expected. Are there any work arounds to get this going on iOS? Update: The stack overflow answer for this post is working for me (i.e. in terms of testing connectivity state and subsequent changes to that state). |
I'm always getting connected = false...
was this not resolved in 0.55.4? |
anyone did find a solution to |
I am having same problem Any progress on this ?? am using
|
This has been resolved probably by this commit: facebook/react-native@36199d3 |
Resolved or not, here's a module I made to make sure we never see that issue again: |
@BoostIO funded this issue with $10. Visit this issue on Issuehunt |
@issuehuntfest has funded $90.00 to this issue. See it on IssueHunt |
@rgommezz has submitted a pull request. See it on IssueHunt |
I've tested the new major version 4.0.0 with RN 0.55.x and 0.57.x and verified that However, I've noticed that the offline behaviour on iOS simulators is not reliable. I've updated this section on the docs to reflect that. Could you please give it a try to v.4.0.0 and let me know? In case you are coming from v3, follow the release notes to upgrade. Thanks! |
@rgommezz has rewarded $70.00 to @rgommezz. See it on IssueHunt
|
On the other hand it seems that the work around for the bug (facebook/react-native#8615) using the attached listener now waits for connection event to happen before broadcasting. So the function is run but doesn't resolve. It waits for an event to happen then resolves.
Because of this, the
checkInternetConnection()
function doesn't work in RN 0.55.x for iOS.The text was updated successfully, but these errors were encountered: