How can I get available WiFi list with NEHotspotHelper (IOS, objective-c)
It's worth highlighting that it's not actually possible to get a list of available Wifi hotspots on an iOS device. Please have a read of this post:
Apple Developer Forums: List available wifi network
Connect to the Wi-Fi network from within the app without internet access
I found that developer need to bind the request with the received command before making web request to the connected network. All you need to do is to make NSMutableURLRequest
and then call hitTestURLRequest.bind(to: command)
because bind function is defined in the category of NSMutableURLRequest
.
Related question: https://stackoverflow.com/a/50753526/1796092
How get a list of networks SSIDs, which is able for Device in search moment?
Looks like, you cannot simply access that info using Captive network Api's. You can get the details of the wifi your device is currently connected to using CNCopyCurrentNetworkInfo
you can get ssid details using NEHotspotHelper in Network Extension, but you need to get access from Apple before using NEHotspotHelper.
Using NEHotspotHelperCommandType =>
FilterScanList(Filter the Wi-Fi scan list) and Evaluate(Evaluate the network). you can get all available NEHotspotNetwork(whcih will contain ssid, bssid, and signalStrength) after registeration is successful
Reference : https://stackoverflow.com/a/39189063/1741121
Related Topics
All Dates Between Two Date Objects (Swift)
Strange Swift Numbers Type Casting
How to Make a Weak Protocol Reference in 'Pure' Swift (Without @Objc)
Opt Out of Uiscenedelegate/Swiftui on Ios
What's the Difference Between "As", "As!", and "As"
Firestore Search Array Contains For Multiple Values
Cfrunloop in Swift Command Line Program
How to Convert Unix Epoch Time to Date and Time in iOS Swift
What Is the "Some" Keyword in Swift(Ui)
Input from the Keyboard in Command Line Application
How to Hash Nsstring With Sha1 in Swift
How to Unwrap an Optional Value from Any Type
Trapping Signals in a Swift Command Line Application
Any Reason Not Use Use a Singleton "Variable" in Swift
Generic Function Taking a Type Name in Swift
Extra Arguments At Positions #11, #12 in Call Swiftui
"Classname Has No Member Functionname" When Adding Uibutton Target