Post

Replies

Boosts

Views

Activity

NEHotspotConfigurationErrorDomain 10 cannot modify system configuration.
We have an app that connects to "controllers" over WiFi using this function:         let configuration = NEHotspotConfiguration.init(ssid: ssid, passphrase: "passphrase", isWEP: false)         configuration.joinOnce = true         NEHotspotConfigurationManager.shared.apply(configuration) { (error) in                     if let error = error as NSError? {                         print("WiFi Connection Error: \(error.domain) \(error.code) \(configuration.ssid) \(error.localizedDescription)")                         completion(false)                     } else if error != nil {                         print("WiFi Connection Error: \(error!.localizedDescription)")                         completion(false)                     } else {                         print("WiFi Connected")                         completion(true)                     }         }     } Everything works perfectly except when we apply our profile to the device and then we get the "NEHotspotConfigurationErrorDomain 10 cannot modify system configuration" error. Location authentication is set to authorizedWhenInUse. I'm assuming this is an issue with the profile or we're missing a permission somewhere. Can anyone point us in the right direction? Thank you in advance.
2
0
349
Dec ’20