How do I get the current wifi list from iPhone

My app need to help my iot device to connect wifi.

So, I need to get the current wifi list from iPhone.

I applied Hotspot Helper permission before, but always rejected.

Apple Developer Relations tell me to use Configuring a Wi-Fi Accessory to Join the User’s Network, but I can't find any api for get wifi list.

I want to know if there are any other ways to get current wifi list from iPhone.

This is a popular question. Start by reading TN3111: iOS Wi-Fi API overview.

I want to know if there are any other ways to get current wifi list from iPhone.

There are not. But if you already know (or can, for example, scan from a barcode) the accessory’s SSID, or at least the first 3 characters of the SSID, then NEHotspotConfiguration’s init(ssid:) and init(ssidPrefix:) are designed for this case.

If that’s not possible, then see this thread for recent discussion of the same issue and some ideas.

if I want to get the ssid list, must use the NEHotspotHelper API. yes or no?

No. As it says in the docs:

NEHotspotHelper is only useful for hotspot integration [1]. There are both technical and business restrictions that prevent it from being used for other tasks, such as accessory integration or Wi-Fi based location.

When TN3111:

iOS does not have a general-purpose API for Wi-Fi scanning

believe it. We don’t put concrete statements like that in our docs accidentally.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Where hotspot is defined as:

a Wi-Fi network where the user must interact with the network to gain access to the wider internet

How do I get the current wifi list from iPhone
 
 
Q