Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Application can’t use WiFi on iOS 11.x
Forum Updated to NodeBB v4.3 + New Features

Application can’t use WiFi on iOS 11.x

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 4 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chyly
    wrote on last edited by
    #3

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      0
      • SGaistS SGaist

        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.

        C Offline
        C Offline
        chyly
        wrote on last edited by
        #5

        @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?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #6

          What kind of popup do you have in mind exactly ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          C 1 Reply Last reply
          0
          • AndySA Offline
            AndySA Offline
            AndyS
            Moderators
            wrote on last edited by
            #7

            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.

            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            ekkescornerE C 2 Replies Last reply
            1
            • AndySA AndyS

              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.

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #8

              my workaround (mentioned in Bug 63760) is still working well at customer sites.

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              1
              • SGaistS SGaist

                What kind of popup do you have in mind exactly ?

                C Offline
                C Offline
                chyly
                wrote on last edited by
                #9

                @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.
                0_1536916053307_3.jpg 0_1536916058466_4.jpg

                1 Reply Last reply
                0
                • AndySA AndyS

                  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.

                  C Offline
                  C Offline
                  chyly
                  wrote on last edited by
                  #10

                  @AndyS Thank you for your reply, but my problem does not seem to be a VPN problem.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    What demo is that ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    C 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      What demo is that ?

                      C Offline
                      C Offline
                      chyly
                      wrote on last edited by
                      #12

                      @SGaist The Demo URL is https://developer.apple.com/library/archive/samplecode/TCPTransports/Introduction/Intro.html#//apple_ref/doc/uid/TP40017680

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        chyly
                        wrote on last edited by
                        #13

                        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)));

                        1 Reply Last reply
                        1

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved