# Is there a way to get the ssid for the currently-active WiFi network on iOS?

**URL:** <https://forums.kodeco.com/t/is-there-a-way-to-get-the-ssid-for-the-currently-active-wifi-network-on-ios/202631>\
**Category:** iOS\
**Created:** [February 26, 2024, 5:29pm UTC](https://forums.kodeco.com/t/is-there-a-way-to-get-the-ssid-for-the-currently-active-wifi-network-on-ios/202631 "2024-02-26T17:29:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doomer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/doomer/32/102075_2.png) [@doomer](https://forums.kodeco.com/u/doomer)\
**Post date:** [February 26, 2024, 5:29pm UTC](https://forums.kodeco.com/t/is-there-a-way-to-get-the-ssid-for-the-currently-active-wifi-network-on-ios/202631/1 "2024-02-26T17:29:08Z")

</div>

Hello,

The product I’m working on uses a WiFi-connected bluetooth peripheral. There is a scenario I’ve been asked to implement that involves being able to detect WiFi connectivity given the peripheral’s notion of WiFi ssid. Snooping around on the internet, I’ve run across several examples getting the iOS current WiFi ssid that involve using CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo, followed by interfaceInfo[kCNNetworkInfoKeySSID as String] to get the ssid. Why I’ve found is that the only information available on iOS 16 is the interface name, like “en0”, and not the ssid, unless the WiFi connection had been configured as a hotspot.

Am I going about this correctly?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [August 11, 2024, 9:29am UTC](https://forums.kodeco.com/t/is-there-a-way-to-get-the-ssid-for-the-currently-active-wifi-network-on-ios/202631/3 "2024-08-11T09:29:54Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
