Unable to remove connection SSID using NEHotspotConfigurationManager removeConfiguration in iOS 12.2 and 12.3.1

Hello everyone!


I'm in trouble because I can not remove the connection SSID in iOS 12.2 and 12.3.1.


I use NEHotspotConfigurationManager removeConfiguration.


This works fine with iOS 11-12.1.4 and 12.3.


Are there any people with similar problems?


Kind Regards.

Replies

Have you tried this using NEHotspotConfigurationSample? If it shows the same problem, you should definitely file a bug about that.

Please post your bug number, just for the record.

Share and Enjoy

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

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

Hi,


My bug report number is "51214371".


I tried NEHotspot Configuration Sample in iOS12.3.1


Sample Code


fileprivate var configuration: NEHotspotConfiguration {

let config: NEHotspotConfiguration

if let password = password {

config = NEHotspotConfiguration(ssid: self.ssid, passphrase: password, isWEP: self.isWEP)

} else {

config = NEHotspotConfiguration(ssid: self.ssid)

}

config.joinOnce = self.joinOnce

return config

}


func remove(ssid: String, completion: @escaping (Error?) -> Void) {

self.manager.removeConfiguration(forSSID: ssid)

self.startUpdate()

DispatchQueue.main.async {

completion(nil)

}

}


self.joinOnce == true is can not remove SSID.

self.joinOnce == false is can remove SSID.


Regards,