jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Version 2.2.0 on iOS : isRemoteReachable always returns false #338

Closed mofadevs closed 8 years ago

mofadevs commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []) and remove all unused areas

This is a

Which plugin does this impact:

Version Number of Plugin:2.2.0 Device Tested On: iPhone 6s Simulator Tested On: iPhone 6s iOS 9.2

Expected Behavior

If remote host is reachable, should return true

Actual Behavior

Always returns false, even if remote host is reachable.

Steps to reproduce the Behavior

Feature Request:

Please fill in what you would like

jamesmontemagno commented 8 years ago

Please try 2.2.1 as I added a bit more handling for v4 and v6 handling. I have tested against a bunch of different URLs and it is working great.

mofadevs commented 8 years ago

Hi, I have tried version 2.2.1 and 2.2.2 but in both cases, on iOS, isRemoteReachable always returns false. I have test the new version on iPhone 6s physical device and same version on the simulator as well. I have used google.com, apple.com and few other links but response is always false. I m using it like the following: return CrossConnectivity.Current.IsConnected && await CrossConnectivity.Current.IsRemoteReachable("google.com"); Please advise.

jamesmontemagno commented 8 years ago

Are you building it against xcode 7.3.1? I have tested it on iOS 9.3.X and working good here.

mofadevs commented 8 years ago

Hi James I mean using xamarin forms on Windows machine and using a mac build host that has xcode 7.2.1. Should I upgrade xcode? Will it have any affect on the current project since it is at the last stage and we don't want any hiccups. Please advise? On Jun 21, 2016 10:47 PM, "James Montemagno" notifications@github.com wrote:

Are you building it against xcode 7.3.1? I have tested it on iOS 9.3.X and working good here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jamesmontemagno/Xamarin.Plugins/issues/338#issuecomment-227550604, or mute the thread https://github.com/notifications/unsubscribe/AQbtaqZ-4HkACzJCKpoOSBKb0q3n3C4Hks5qOD-zgaJpZM4I5g-j .