Unsolved Application can’t use WiFi on iOS 11.x
-
Since you have a special edition, you should check whether you now need to provide an entitlement to your application in order to request access to the WiFi or do something special for iOS 11 regarding that.
-
@SGaist Thank you for your reply. This issue may require special handling.
One way I think is to actively pop up a network authorization box when the program first starts. Does the iOS version of QT have the function of popping up the authorization window? -
What kind of popup do you have in mind exactly ?
-
I don't know if it is related, but the bug reported here https://bugreports.qt.io/browse/QTBUG-63760 might be relevant to this. So it might be worth watching that too.
-
my workaround (mentioned in Bug 63760) is still working well at customer sites.
-
@SGaist I downloaded a tcp demo from Apple's official website. I first select "socket stream" to pop up the authorization window, and "BSD socket" does not work.
I am the Chinese version of ios11, the pop-up window is like this.
-
@AndyS Thank you for your reply, but my problem does not seem to be a VPN problem.
-
What demo is that ?
-
-
Thank you, this issue has been solved. Request DNS once each startup to pop up the authorization box.
Code is as follows:
QHostInfo::lookupHost("test.com", this, SLOT(dumpResults(QHostInfo)));