xamarin / ios-samples

Xamarin.iOS sample apps
http://docs.microsoft.com/xamarin/ios/
Other
1.59k stars 1.91k forks source link

Reachability sample issue #384

Closed alphagamer7 closed 4 years ago

alphagamer7 commented 5 years ago

Regarding this - https://github.com/xamarin/ios-samples/tree/master/Reachability

For internet connectivity check, I have used as in the example but the event only gets fired once, from when I Connect -> Disconnect. When I reconnect back, the event doesn't get fired. Any idea why?

Simulator iOS 12.4 macOS Mojave Version 10.14.6

whitneyschmidt commented 5 years ago

Thank you for your feedback!

Have you tried the sample from Apple? Does it show the same behavior?

Could you please post exact steps to reproduce your issue if so?

alphagamer7 commented 5 years ago

Also similar thing happens when using with Xamarin.Essesntials So I tried the sample iOSReachabilityTestARC, and this was the results

Screen Shot 2019-09-07 at 8 25 20 AM

Note: Checked internet connection through wifi

I have reconnected through wifi, but it only shows local wifi connection available as shown in the screenshots

alphagamer7 commented 5 years ago

@whitneyschmidt Any updates on the issue?

chamons commented 5 years ago

Strange, I just tested it and I see wifi show up after dropping and returning.

Can you post exact steps to reproduce?

alphagamer7 commented 5 years ago

@chamons Steps to reproduce

  1. Run app with internet connection( Similar happens for xamarin.essentials as well)
  2. After app is loaded, turn wifi off The following screen shows image
  3. Turn Wifi on The following screen is shown. Note: no internet connection although wifi block says reachable. image
alphagamer7 commented 5 years ago

According to this https://github.com/xamarin/Essentials/issues/855 testing in simulator doesn't yield correct results, confirmed by testing with physical device, works as expected.

spouliot commented 4 years ago

testing with physical device, works as expected.

closing