6 Replies
      Latest reply on Mar 26, 2020 3:41 PM by aatanac
      mromero164 Level 1 Level 1 (0 points)

        Good afternoon,

        I'm doing the development of an app whose main purpose is to make the connection to a public Wi-Fi network that requires access data for the connection. The purpose of this app is therefore to avoid users having to perform this process.

        To do this, I need to show the user the Wi-Fi networks that are within their reach at a specific moment for the user to select our network and the app to carry out the authentication process.

         

        From what I see surfing the internet, I have to use the NEHotspotHelper classes and request apple the granting of a special permit for my provisioning profile but it is not clear to me what I have to ask apple or what process I have to follow to get it.

         

        Please, if someone has been in this situation and could tell me what steps to follow, I would greatly appreciate it.

        • Re: List available wifi network
          eskimo Apple Staff Apple Staff (13,905 points)

          From what I see surfing the internet, I have to use the NEHotspotHelper classes and request apple the granting of a special permit for my provisioning profile but it is not clear to me what I have to ask apple or what process I have to follow to get it.

          Take a look the Important box at the top of the main Hotspot Helper documentation page.

          To do this, I need to show the user the Wi-Fi networks that are within their reach at a specific moment for the user to select our network and the app to carry out the authentication process.

          Just so we’re clear, these isn’t how hotspot helper works.  Rather:

          • Your hotspot helper can annotate networks as being supported by it.

          • The user chooses the network via the usual means.

          • The hotspot network subsystem invokes your helper to do the authentication.

          It is possible for a hotspot helper to build a list of known networks as a side effect of this process, but there’s is no API that simply returns a list of nearby networks.

          For more background on this, see the Hotspot Network Subsystem Programming Guide and the Technical bullet on this post.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"

            • Re: List available wifi network
              mromero164 Level 1 Level 1 (0 points)

              Hello,

              Based on the documentation you have provided me, in order to list nearby Wi-Fi networks I would have to use the class "kNEHotspotHelperCommandTypeFilterScanList". But for this I would need permission to use NEHotspotHelper. I'm right?

                • Re: List available wifi network
                  eskimo Apple Staff Apple Staff (13,905 points)

                  First up, just to be clear, any use of the NEHotspotHelper class requires the com.apple.developer.networking.HotspotHelper entitlement, which is a special entitlement granted by Apple.

                  Secondly, you wrote:

                  Based on the documentation you have provided me, in order to list nearby Wi-Fi networks I would have to use the class kNEHotspotHelperCommandTypeFilterScanList.

                  It is true that scan result are passed through your hotspot helper via the kNEHotspotHelperCommandTypeFilterScanList command.  However, that is not a reliable way to build a list of nearby Wi-Fi networks.  Read the Technical bullet on the post I referenced for an explanation as to why.

                  The hotspot helper API does not work the way you want it to work, and if you go into this effort assuming that it does, you will be disappointed.

                  Share and Enjoy

                  Quinn “The Eskimo!”
                  Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                  let myEmail = "eskimo" + "1" + "@apple.com"