Hey there,
I'm currently facing an issue with NEHotspotConfigurationManager:
After joining a Hotspot (which has no internet) with applyConfiguration and joinOnce=true, the removing of the configuration (which is done as soon the app goes in background) is not disconnecting the WiFi, also not after 15 seconds.
With the Sample App (https://developer.apple.com/library/archive/samplecode/NEHotspotConfigurationSample/Introduction/Intro.html#//apple_ref/doc/uid/TP40017679) I have a similar behaviour. With the first ApplyConfiguration (joinOnce = true) after closing the SampleApp the WiFi Hotspot is disconnected after about 15 seconds. When I go back to the App and start ApplyConfiguration again (also joinOnce = true) then after closing the app the WiFi Hotspot is not disconnected at all.
There seems to be a workaround and perhaps another problem. When applying the configuration two times with a small delay of 1-2 seconds, it is possible to disconnect from the WiFi hotspot instantly by removing the configuration. The Problem here is, that the wifi consent dialog appears two times. When I look into the system logs I see a logging line with:
"wifid __WiFiManagerDispatchNextAddNetworkAsyncRequest: Don't show popup as user have already given consent for this network."
But it shows a Consent Dialog a second time.
Tested on iOS 15.3
Kind regards
Philipp