This is not a duplicate of dozens of similar questions (too much to list) , because I have evidence that you can publish an application that displays a list of Wi-Fi networks.
So, it was widely accepted and understandable that you cannot get a list of all Wi-Fi networks without using a private api. Using a private api will cause the application to be rejected from the app store check.
However, Google did this recently in its Google Home application, which was released on October 22, 2006, so it should be possible now . How?!?
Notice in the App Store list that the application supports iOS 8.0 or later. I need to additionally check whether this functionality exists only in the version of the iOS 10 application or if it really exists in iOS 8 and 9.
(I displayed my wifi name and mac address in the image)

I use Objective-C, so if you submit the solution to Swift, send ObjC as well!
source share