I have an expo app that works as a companion app to an IoT device.
To connect the device to the wifi, the app has to connect to the device's wifi and send it a network call containing the wifi info.
Up until Android 9, this worked fine. But as I started testing on newer devices, I discovered this doesn't work as smoothly as before, as now if you connect to a wifi without internet access, you get a message saying "This network has no internet access. Stay connected?". The user now has to ideally select "Dont ask again" AND select "Yes" before the network call is sent to the device.
It kinda sucks UX wise as if the user misses this popup, or dismisses it, the network request won't go through as Android blocks all data transfers until you specifically select "Yes" to the popup. If the user misses the popup, they can still see a notification with "This wifi has no internet access" to access the popup.
So, the question is : Is there a way to bypass this? Ideally something like a permission that I can ask the user before hand? I haven't found anything so far except for this issue Force Android to Use Wifi network with no internet that is similar, but in my case the phone doesn't go back to the mobile data, it just doesn't transfer any data between the wifi and the app. Works fine with iOS though :/