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

IsRemoteReachable returns true when there is no internet connection. #314

Closed
2 of 13 tasks
VysotskiVadim opened this issue May 24, 2016 · 2 comments
Closed
2 of 13 tasks

Comments

@VysotskiVadim
Copy link

VysotskiVadim commented May 24, 2016

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

  • Bug
  • Feature Request

Which plugin does this impact:

  • Battery
  • Connectivity
  • Contacts
  • DeviceInfo
  • ExternalMaps
  • Geolocator
  • Media
  • Permissions
  • Settings
  • Text To Speech
  • Vibrate
  • Other:

Version Number of Plugin: 2.1.2
Device Tested On: IPhone 6

Expected Behavior

Connect to wifi with internet connection
Launch application
await CrossConnectivity.Current.IsRemoteReachable("google.com") is true
reconnect to wifi without internet connection
open application
await CrossConnectivity.Current.IsRemoteReachable("google.com") is false

Actual Behavior

Connect to wifi with internet connection
Launch application
await CrossConnectivity.Current.IsRemoteReachable("google.com") is true
reconnect to wifi without internet connection
open application
await CrossConnectivity.Current.IsRemoteReachable("google.com") is true

I've made short investigation and found this http://stackoverflow.com/questions/16895819/wp8-socket-connectasync-completed-handler-always-returns-success. It's strange because documentation(https://msdn.microsoft.com/ru-ru/library/bb538102(v=vs.110).aspx) says that: If you are using a connection-oriented protocol, the ConnectAsync method starts an asynchronous request for a connection to the remote host, I understood that for tcp ConnectAsync should wait for successful handshake... but anyway I will try advice from stack overflow.
Any ideas about it?

@jamesmontemagno
Copy link
Owner

Copied to: jamesmontemagno/ConnectivityPlugin#2

@iletai
Copy link

iletai commented Jul 14, 2021

Any update here? @jamesmontemagno

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

3 participants