I am a newbie! I want to check the internet availability when my app is launched as i am retrieving data from server. If internet is available, User can carry-on with app without any notification. If there in no internet, then I have to navigate to a specific page from my app.
I found some pages on stack overflow for this but there are old and for windows 8 or windows phone 8 not for WP8.1.
I am using the following namespaces...
System.Net.NetworkInformation, Windows.System, Windows.Networking.Connectivity and System.Net;
Tried using Bool, IPHostEntry, GetIsNetworkAvailable but everthing failed.
Can someone post a sample code? Will it be in app.xaml.cs and individual page's cs?
Below image is my try.