In Windows 10 UWP app how do I detect if the current internet connection is Wifi or Cellular?
In UWP you can check network connectivity using the IsWlanConnectionProfile or IsWwanConnectionProfile properties.
An example would be:
var temp = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile();
if (temp.IsWlanConnectionProfile)
{
// its wireless
}else if (temp.IsWwanConnectionProfile)
{
// its mobile
}
I hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With