Thank you for your reply. I use NEHotspotConfiguration and NEHotsportConfigurationManager to connect IoT devices in my App. But it still has this prompt.
I check internet traffic, seems like after I connect to the IoT device, Apple is sending get request to netcts.cdn-apple.com to see if the network is working. Due to I connect to an IoT device through Wi-Fi and no internet access at this point, the request will fail and it throws the prompt.
Is there any configuration I can apply to NEHotspotConfigurationManager and ask not to send get request to netcts.cdn-apple.com?