Whenever I turn off Wi-Fi in the Setting.app, NEHotspotConfigurationManager.apply() doesn't get triggered.
If I restart my app, the apply function responds with
Error Domain=NEHotspotConfigurationErrorDomain Code=8 "internal error." UserInfo={NSLocalizedDescription=internal error.}
After restarting the device, this issue occurs again.
I observed this issue on iOS 16.6, and I'm not sure if it's the same on other versions.