nehotspothelper

How can I get available WiFi list with NEHotspotHelper (IOS, objective-c)

两盒软妹~` 提交于 2019-12-03 17:29:26
I have already done this. 1. Add IOS certifivate in Apple Developer page. 2. Add identifiers App IDs with Network Extension enabled in Apple Developer page. 3. Add provisioning profile in Apple Developer page. 4. Create xcode project and type the correct bundle ID which made in apple developer page. And sign right team. 5. Add capabilities and library (Network Extension framework). 6. After 5, Entitlement file is generated automatically in my xcode project. 7. At last time I wrote the code like this. NSLog(@"List Scan START"); NSMutableDictionary* options = [[NSMutableDictionary alloc] init];

iOS 11.0 - Periodically scan for SSIDs (WiFi) nearby

被刻印的时光 ゝ 提交于 2019-11-29 04:01:37
I would like to scan for nearby SSIDs of the Wi-Fi networks periodically (without connecting to it) and implement an SSID filter (one or multiple). Once a match is found a back-end API call is initiated. 
I have done a quick research on the Hotspot Helper framework in iOS 10. I found that, these APIs are not designed for the use I’ve identified. 
Seems like, iOS 11 now allows apps to manage Wi-Fi configurations programmatically. Apple added a network extension for hotspot configuration methods and properties. Please click here to see the changes. 
 My question here is, can I achieve my goal

CNCopyCurrentNetworkInfo with iOS 13

只谈情不闲聊 提交于 2019-11-27 23:28:19
问题 Apple changed some things regarding WiFi with iOS 13. If you want to use CNCopyCurrentNetworkInfo your app needs to have one of the following Apps with permission to access location Your app is the currently enabled VPN app Your app configured the WiFi network the device is currently using via NEHotspotConfiguration Source: WWDC 19 session 713 I am configuring a network using NEHotspotConfiguration but I can not get the current SSID anymore after doing so. The following code worked fine with

iOS 11.0 - Periodically scan for SSIDs (WiFi) nearby

人走茶凉 提交于 2019-11-27 16:19:17
问题 I would like to scan for nearby SSIDs of the Wi-Fi networks periodically (without connecting to it) and implement an SSID filter (one or multiple). Once a match is found a back-end API call is initiated. 
I have done a quick research on the Hotspot Helper framework in iOS 10. I found that, these APIs are not designed for the use I’ve identified. 
Seems like, iOS 11 now allows apps to manage Wi-Fi configurations programmatically. Apple added a network extension for hotspot configuration

NEHotspotHelper.register not received call back iOS11

北战南征 提交于 2019-11-27 09:48:43
I am working on NEHotspotHelper and trying to register but not receiving call back. Firstly, I enabled Capability : Network Extensions Then added this following code, let options: [String: NSObject] = [kNEHotspotHelperOptionDisplayName : "ABC" as NSObject] let queue: DispatchQueue = DispatchQueue(label: "com.ABC", attributes: DispatchQueue.Attributes.concurrent) NSLog("Started wifi scanning.") NEHotspotHelper.register(options: options, queue: queue) { (cmd: NEHotspotHelperCommand) in NSLog("Received command: \(cmd.commandType.rawValue)") if cmd.commandType == NEHotspotHelperCommandType