How do I use CaptiveNetwork to get the current WiFi Hotspot Name

后端 未结 4 2042
迷失自我
迷失自我 2020-11-28 04:17

I need to get the name of the currently connected Wi-Fi hotspot, e.g. \"BT OpenZone\"

I have been told it can be done with CaptiveNetwork specifically CNCopyCurrentN

4条回答
  •  感情败类
    2020-11-28 05:07

    Note that in Xcode 10 and iOS 12 you now need to enable the "Access Wifi Information" capability.

    Source: https://openradar.appspot.com/43280182

提交回复
热议问题