nehotspothelper

Working around the issue of being unable to acquire WiFi signal strength in iOS

纵饮孤独 提交于 2020-07-03 12:59:41
问题 I have an iOS app that I had intended on adding a feature which shows WiFi bars to show the user their WiFi signal strength while the app is in full screen. As I have learned recently, it is not possible to include a feature in an iOS app which allows you to show the signal strength of the connected wireless network since Apple does not allow this unless you sign up to register for Apple's NEHotspotHelper and this is not a normal use case for this API. To work around this issue, is there some

Call to NEHotspotHelper.register never returns

我的未来我决定 提交于 2020-01-02 14:55:49
问题 I am working on an iOS app which has a requirement to automatically connect to a WiFi network. We had requested for a NEHotspotHelper extension from Apple which is approved. Now I am trying to auto connect to the WiFi network around. But the call to method NEHotspotHelper.register never returns. I have added the entitlement com.apple.developer.networking.HotspotHelper in the entitlement file of the app and am also using a newly created provisioning profile with the said entitlement enabled.

Call to NEHotspotHelper.register never returns

孤者浪人 提交于 2020-01-02 14:55:22
问题 I am working on an iOS app which has a requirement to automatically connect to a WiFi network. We had requested for a NEHotspotHelper extension from Apple which is approved. Now I am trying to auto connect to the WiFi network around. But the call to method NEHotspotHelper.register never returns. I have added the entitlement com.apple.developer.networking.HotspotHelper in the entitlement file of the app and am also using a newly created provisioning profile with the said entitlement enabled.

NEHotspotConfigurationManager getting this alert:“Unable to join the network<name of network>” while error is nil

筅森魡賤 提交于 2019-12-23 09:29:32
问题 So i am trying to monitor the connection status by closers : func reconnect(success: @escaping () -> Void, failure: @escaping () -> Void) { let manager = NEHotspotConfigurationManager.shared let ssid = CameraManager.camera.uuid let password = "password" let isWEP = false let hotspotConfiguration = NEHotspotConfiguration(ssid: ssid, passphrase: password, isWEP: isWEP) hotspotConfiguration.joinOnce = true manager.apply(hotspotConfiguration) { (error) in if (error != nil) { if let error = error

How to create a hotspot network in iOS app using Swift

霸气de小男生 提交于 2019-12-23 02:47:09
问题 I want to create a hotspot network in iOS app using swift. Also please suggest ony apple approved APIs. Thanks! 回答1: NEHotspotHelper is an official API to do exactly this kind of stuff. Though the API is not an 'Open to All' kind. It needs the entitlement 'com.apple.developer.networking.HotspotHelper' to be included in your app. To use this entitlement you need to ask for a permission from Apple to use this class with your app's bundle identifier with a clear reason for why you need it with

NEHotspotHelper.register not received call back iOS11

左心房为你撑大大i 提交于 2019-12-17 10:09:10
问题 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(

NeHotspotHelper: not able to send web request in authenticating state of authentication state machine

泪湿孤枕 提交于 2019-12-11 03:21:56
问题 I have implemented the NeHotspotHelper so that I can perform authentication in the background for networks with a captive portal. I need to perform a web request in the 'authenticating' state so that I can retrieve the Wispr and also access an API. However, when I try to use URLSession to send a web request, the request fails. This is the error: [594:88737] dnssd_clientstub read_all(7) DEFUNCT [594:88783] TIC TCP Conn Failed [4:0x1c0177a00]: 12:8 Err(-65554) [594:88783] Task .<1> HTTP load

How to create a hotspot network in iOS app using Swift

六眼飞鱼酱① 提交于 2019-12-07 17:54:20
I want to create a hotspot network in iOS app using swift. Also please suggest ony apple approved APIs. Thanks! NEHotspotHelper is an official API to do exactly this kind of stuff. Though the API is not an 'Open to All' kind. It needs the entitlement 'com.apple.developer.networking.HotspotHelper' to be included in your app. To use this entitlement you need to ask for a permission from Apple to use this class with your app's bundle identifier with a clear reason for why you need it with some other details of your app. Use this link to apply for the entitlement. Once apple sends an approval mail

Call to NEHotspotHelper.register never returns

我只是一个虾纸丫 提交于 2019-12-06 14:11:32
I am working on an iOS app which has a requirement to automatically connect to a WiFi network. We had requested for a NEHotspotHelper extension from Apple which is approved. Now I am trying to auto connect to the WiFi network around. But the call to method NEHotspotHelper.register never returns. I have added the entitlement com.apple.developer.networking.HotspotHelper in the entitlement file of the app and am also using a newly created provisioning profile with the said entitlement enabled. Trying to get it work from last week. Looks like a small thing which I am finding difficult to catch.

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

让人想犯罪 __ 提交于 2019-12-05 02:09:13
问题 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