Network Problem

mansimansi USUniversity ✭✭

I am developing a mobile app using xamarin.iOS.I have one doubt where i am stuck badly.I need to check the internet issue as i am using WiFi sometimes it happens like the network will be there we will be able to see the page but internet will be not there.
In that case i am checking this condition which is true;
if (CrossConnectivity.Current.IsConnected == false)
{
UIAlertView alert = new UIAlertView(@Alert, @You are not connected to the network, null, NSBundle.MainBundle.LocalizedString("OK", "OK"));
alert.Show();
return;
}
Note-This will be observed where the wifi will be connected but internet access will not be there.)

Thanks in advance:-)

Sign In or Register to comment.