I use my app to connect to IoT devices through WIFI. This IoT device does not connect to the network, it will just return the data that read from the sensor inside of the IoT device. Once I connect this IoT device, Apple gives a prompt "The Wi-Fi network does not appear to be connected to the internet Do you want to temporarily use cellular data?" And it will give me two options, one is to use cellular data and the other is to keep trying Wi-Fi. If I choice uses cellular data, it will cut the connection between my app and IoT device. And this prompt will confusing users since we want to the user still use Wi-Fi to connect to IoT devices. is there a way to remove this prompt? Or any setting I can do in XCode to avoid this prompt?
Avoid "The Wi-Fi network does not appear to be connected to the internet" prompt for connect local IoT device through Wi-Fi
is there a way to remove this prompt?
No.
Regarding:
Or any setting I can do in XCode to avoid this prompt?
This prompt sounds like you are associating from the iOS device to the IoT device via the Settings app. For communication in your directly to your IoT device have you tried NEHotspotConfiguration
and NEHotspotConfigurationManager
?
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Is there any configuration I can apply to NEHotspotConfigurationManager and ask not to send get request to netcts.cdn-apple.com?
I am not sure why this request is being made, but to answer your question, no, if you are not making this request from your app, then there is no way to control this request if the system is in-fact making it.
If you are receiving a prompt like the one you are describing you could be trying to communicate with the IoT device too fast after the successful completion block for apply
is called. If you add a 3-5 second delay before you start your communication, does this improve the situation?
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
We have a very similar issue. Our app is establishing a WiFi connection with a camera. The camera itself is not connected to the internet. The prompt seems to appear at random and inconvenient times. It also appears every time we connect to the camera anew. Would it be possible to ask for the permission upfront and save the answer for next time?
Would it be possible to ask for the permission upfront and save the answer for next time?
Not that I am aware of.
Regarding:
Our app is establishing a WiFi connection with a camera. The camera itself is not connected to the internet. The prompt seems to appear at random and inconvenient times.
This can happen when their is other network traffic trying to access the wider internet on the system. This can also happen if their is a weak association to your device. My advice would be to make sure you have a strong association to the camera, if you need to delay your communication from your app for a few seconds, then try this. Otherwise you may need to try the association again via NEHotspotConfigurationManager.apply()
.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com