Unsolved Application can’t use WiFi on iOS 11.x
-
I am developing a multi OS application. The same source code is deployed on IOS, Windows, Android.
App uses WiFi connect to server.
On the earlier version of IOS, this was working, This also works well on all other OS. but version iOS11 App can not uses WiFi.
Does anyone have some suggestions for a solution? -
Hi,
Did you change Qt versions in between ?
If not, what version are you using ? -
Thank you for your reply
I am using qt5.9.6. I have not tried other versions yet.
We use the Chinese version of iOS11.x with a firewall-like function. User authorization is required when the application accesses the network. However, my app is running without an authorization window popping up, which prevents networking.
iOS10.x also has a firewall-like function, it can pop up the authorization window, but iOS11.x does not work -
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)));