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

Connection Stream listen return true even when there is no internet connection #19

Open
renrique92 opened this issue May 29, 2023 · 3 comments

Comments

@renrique92
Copy link

I'm using an Android emulator, currently, the emulator has no internet connection, but when I init the connecteo object, and listen the connection stream returns true... this is a problem

_connecteo.connectionStream.listen((isConnected) { _loggerService.warning('YOU ARE: ${isConnected ? 'ONLINE' : 'OFFLINE'}'); _connected.value = isConnected; });

@mateuszfilipek2000
Copy link
Contributor

Hi @renrique92 , I've tried to reproduce the error that you're encountering, but I didn't have much luck with it. What I've tried: starting the app without internet connection and creating ConnectionChecker at app startup, delaying the creation of ConnectionChecker and starting the app without internet connection, changing connection status while the app is running. All of the above scenarios worked fine for me. Could you please provide more details on how to reproduce the error? If you could, please provide code samples, the configuration, and the steps to reproduce the error. Thanks!

@definitelyme
Copy link

definitelyme commented Jun 9, 2023

Same here; seems to work fine on my emulator, with or without internet.
@renrique92 can you provide code samples to reproduce the issue?

@haizadvnet
Copy link

I am able to reproduce the same issue, but maybe it's different steps from the OP.

  1. Use sim card that does not have internet and place it on device A and then open for mobile hotspot.
  2. Run the example code on Device B
  3. Device B connect with Device A hotspot

Same error occurs.

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

No branches or pull requests

4 participants