Share via

Does NetworkInformation.GetInternetConnectionProfile require location service to be turned on?

Sreekanth N Kartha 80 Reputation points
2026-04-07T05:09:51.6366667+00:00

I’m using NetworkInformation.GetInternetConnectionProfile() to get Wi-Fi details like signal strength and SSID for my application.

I noticed that when Location Services are turned off, these details are not returned. But as soon as I turn Location Services on, everything works fine.
{4BDC5E37-21C0-4CB7-80AB-729B31C3EC6D}

Is this expected behavior across all architectures (ARM, x86, x64), or is it specific to certain setups?

Also, why does accessing Wi-Fi details depend on Location Services being enabled?

Windows development | Windows App SDK
0 comments No comments

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 11,235 Reputation points Microsoft External Staff Moderator
    2026-04-07T06:18:32.88+00:00

    Hello @Sreekanth N Kartha ,

    This behavior is consistent across all architectures. To put this simply, GetInternetConnectionProfile() itself doesn't require location services, but the sub-properties it exposes, like GetConnectedSsid() and signal strength, do. Without location services enabled, those will simply return null.

    Microsoft covers this in more detail under Changes to API behavior for Wi-Fi access and location. If anything is still unclear, feel free to follow up in the comments.

    I hope this clarifies your issue. If you found this information helpful or informative, I would appreciate it if you could leave some feedback following this guidedance.

    Thank you.


1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-07T05:10:05.3133333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Yes. Access to Wi‑Fi details that can be used to infer the device’s physical location (such as SSID/BSSID and signal strength) is governed by the Windows location platform and its privacy settings. When Location services are turned off, apps are blocked from using certain Wi‑Fi APIs and related information, so NetworkInformation.GetInternetConnectionProfile() will not return those details. When Location services are turned on, the same call can return them.

    This behavior is by design and is not tied to a specific CPU architecture. It comes from how Windows treats Wi‑Fi information as location-related data:

    • Windows uses Wi‑Fi access points, routers, and similar signals to determine device location and improve Microsoft location services. This is explicitly described as part of the location system, together with GPS, cellular towers, and IP address.
    • Apps that request access to Wi‑Fi APIs that can be used to determine location are surfaced and controlled through the Location settings page. If Location services are off, those apps cannot use such APIs, which is why Wi‑Fi details disappear until Location is enabled again.

    So the dependency is intentional: Wi‑Fi network characteristics are considered sensitive because they can reveal or approximate the device’s location, and therefore they are protected behind the Location services switch and per‑app location permissions.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.