iOS Question iOS 12 Get SSID of Connected Network

Discussion in 'iOS Questions' started by simplypats, Jan 30, 2019.

  1. simplypats

    simplypats Member Licensed User

    We are connecting to a device via WiFi and need to check the SSID of the connected device.

    Until iOS 12 was release the following code worked well

    However with iOS 12 no SSID information is returned.

    We created a new App Id and enabled Access WiFi Information service enabled (with thanks to Erel and Tufanv) We are currently running B4i 5.3

    Is there any new way of getting the SSID of the connected network or any configuration such as a PlistExtra setting which we need to implement.
  2. moster67

    moster67 Expert Licensed User

  3. simplypats

    simplypats Member Licensed User

    Thanks for the suggestion moster67.

    We have looked at quite a few posts around the internet, including those on Stack OverFlow, but nothing really addresses the query.

    We are currently looking at another method as a fall back, which in theory should work, and early testing looks promising.
  4. JanPRO

    JanPRO Well-Known Member Licensed User

    The code will also work fine with iOS 12, add the following Entitlement to your project attributes section:
    #Entitlement: <key></key><true/>
  5. simplypats

    simplypats Member Licensed User

    Thank you very much Jan I will give it a go.
  6. simplypats

    simplypats Member Licensed User

    Just an update to this thread,

    Adding the Entitlement above to the project attributes section has worked and the SSID of the connected network is now being returned.

    Many Thanks to Jan and moster67
    Sandman, Erel and moster67 like this.
  7. Turbo3

    Turbo3 Active Member Licensed User

    Did not work for me.

    I get the following error when compiling.

    Provisioning profile "Turbo3Wildcard2" doesn't support the Access WiFi Information capability. (in target 'B4iProject')
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice