NEHotspotConfiguretaion returns systemConfiguration Error even after deleting Wi-Fi Configuretion Profile

I have the following problem about NEHotspotConfiguration.


Even after deleting [Wi-Fi configuretion profile], NEHotspotConfiguretionManager.shared.apply returns systemConfiguration error.


  1. Install [Wi-Fi configuration profile] created in my application.
  2. Manually delete Wi-Fi configuration profile installed in [1.]
  3. In my application, try to connect Wi-Fi access point.
  4. Get systemConfiguretion error for the connection requeest in [3.]. NEHotspotConfigurationError.systemConfiguration(= 10)


My code is like below,


    let accsessPointAConfig = NEHotspotConfiguration(ssid: A.ssid, passphrase: A.pass, isWEP: false)
    NEHotspotConfigurationManager.shared.apply(accsessPointAConfig)



I expect my application can connect Wi-Fi access point with NEHotspotConfigurationManager after removing [Wi-Fi configuretion profile].


I've also observed strange behaviors.


  • Wi-Fi configuration profile was deleted but I could connect the Access Point in [Settings] of iOS.
  • [Settings] > [Wi-Fi] > [Info button]. There wasn't [Forget this network] button.


I'd appreciate it if you would tell me the cause or solution of this issue.


Thank you.

Replies

I’d like to clarify your terminology here. You wrote:

1. Install [Wi-Fi configuration profile] created in my application.

Normally when I use the term configuration profile I’m referring to a property list that’s installed by the user or via MDM. That is, the thing described in the Configuration Profile Reference. However, you seem to be using it to mean something else. Perhaps you could expand on that usage, and maybe explain the steps you’re taking in terms of APIs called?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi. eskimo. Thank you for your reply.


I'm not using MDM.

My application takes picture of QR code. The QR code has SSID and Password.

Then my application creates [Wi-Fi configuration profile] and ask users to install it.


Thank you.

Then my application creates [Wi-Fi configuration profile] and ask users to install it.

By this you mean a configuration profile (per the Configuration Profile Reference) with a

com.apple.wifi.managed
payload, right?

If so, it sounds like you’re trying to replace your old approach for logging on to an access point (creating a configuration profile and having the user install it) with a new approach (

NEHotspotConfigurationManager
). Right?

And the problem you’re seeing is that the configuration profile is causing this error even after you delete it. Right?

If so, that’s not something I’ve looked into before and I have no suggestions as to what might be going wrong. Honestly, this sounds like a bug and I recommend that you file it as such. Please post your bug number, just for the record.

If you’d like me to dig into this further to see if I can find a workaround, you should open a DTS tech support incident so that I can allocate an appropriate amount of time for that work.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Sorry for the late reply.


Your understanding about my question is correct.


Now I understand unfortunately there isn't any good solution regarding my problem.


Anyway thank you for your suggestion for further discussion(Bug report or DTS support).


Regards,

m.masa