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
Connectivity how to ping a website? #334
Comments
Hey there. Be sure to read the full docs: https://docs.microsoft.com/en-us/xamarin/essentials/connectivity No need to call IsConnected. If you call it on a platform not supported then it will throw an exception for you to handle. Correct, Internet is the correct call to check here for NetworkAccess, but the docs highlights more information. IsReachable was something I wish I never implemented in my original plugin as each device handles this very different and was never 100% reliable. It really makes no sense to try to ping a site to see if it is there instead of just making the web request. You are actually slowing your app down by pinging and then making the request... just make the request :) |
@jamesmontemagno thats fair explanation thank you. just one more question please; do we ever have to worry about "Dispose" any of the objects? as you can see above, we disposed things in Connectivity plugin and texttospeech plugin etc. but Essentials doesnt implement disposable. |
There is nothing that needs to be disposed at all as we architected each of the APIs to work seamless without having to worry about this. |
I'd love it if you would revisit adding back IsRemoteReachable. It's been a part of iOS forever. I think Miguel added Reachability code in one of the first samples for MonoTouch.Dialog, if not before. The reachability concept is better for a few reasons, namely:
|
How to ping an IP address in Local Network? |
Just switching from connectivity plugin to essentials and it looks like quite differently implemented. i have 2 questions here;
so before it looked like as below
The text was updated successfully, but these errors were encountered: