How do you check the Internet?



  • How do we correctly check the availability of the Internet in the mobile application?

    Whether Internet access is included on the telephone and, even if it is included, if the network is available (the ability to download or transmit information via the network).



  • var p = NetworkInformation.GetInternetConnectionProfile();
    if (p != null 
        && p.GetNetworkConnectivityLevel() >= NetworkConnectivityLevel.InternetAccess) 
    {
      // ...
    }
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2