1 2 3 Previous Next 99 Replies
      Latest reply: Oct 8, 2015 2:29 PM by sigint RSS
      thybe Level 1 Level 1 (0 points)

        With iOS 9 beta 4, the CNCopySupportedInterfaces API is broken.

        (it was working until beta3)

        So my app can't get current wifi ssid.

         

        It should be possible to use [NEHotspotHelper supportedNetworkInterfaces]

        However it returns always nil.

         

        How is it possible to get current ssid ?

        (I don't want to manage hotspot network)

        • 1. Re: get current WiFi ssid
          geekydevjoe Level 1 Level 1 (0 points)

          I'm in the same boat. Just found that out today. This *****

          • 2. Re: get current WiFi ssid
            Kakkii Level 1 Level 1 (0 points)

            I have a same problem.

            I can't get ssid and BSSID.

            • 3. Re: get current WiFi ssid
              geekydevjoe Level 1 Level 1 (0 points)

              Well since the old method doesn't work at all and the new method doesn't seem to work I would say it's a bug that we should all report to apple

              • 4. Re: get current WiFi ssid
                Thyraz Level 1 Level 1 (0 points)

                Ah, good to know that there is a new API, so it's most likely a bug.

                With the old deprecated API, I was already afraid they blocked access to the SSID due to privacy concerns.

                 

                Will report a bug too.

                • 5. Re: get current WiFi ssid
                  geekydevjoe Level 1 Level 1 (0 points)

                  I guess Apple is focusing on the hotspot issue. While I still think it is a bug it seems that if you want to use the newer methods you have to register as hotspot helper app. I think most of us that were using the CaptiveNetwork features to get the SSID for the current network were using it as a side effect that apple didn't plan for and didn't know people were using that way. Hopefully we can still use it in iOS 9.

                   

                  #import <NetworkExtension/NetworkExtension.h>
                  
                  NSArray * networkInterfaces = [NEHotspotHelper supportedNetworkInterfaces];
                  NSLog(@"Networks %@",networkInterfaces);
                  
                  
                  
                  • 6. Re: get current WiFi ssid
                    SirGreenDragon Level 1 Level 1 (0 points)

                    Seeing same issue

                     

                    file bug report 21964534

                    • 7. Re: get current WiFi ssid
                      SirGreenDragon Level 1 Level 1 (0 points)

                      This is a follow-up to Bug ID# 21964534. 

                       

                      Engineering has determined that this issue behaves as intended based on the following information:

                       

                      Please use the NEHotspotHelper API instead.

                       

                      We consider this issue closed.

                      • 8. Re: get current WiFi ssid
                        mcnahum Level 1 Level 1 (0 points)

                        But is this method is working and give the SSID?

                        If NEHotspothelper gave a null result ...

                        • 9. Re: get current WiFi ssid
                          eskimo Apple Staff Apple Staff (7,960 points)

                          First of all, thanks for all your feedback about this issue (both formal, via Radar, and informal, via DevForums, email, and so on).

                          Second, be aware that this is not a accidental change (r. 15225882): rather, Apple has serious concerns about the privacy implications of CNCopySupportedInterfaces and now that its expected use case, dealing with captive networks, has been formally replaced via NEHotspotHelper, it seemed like a good time to make this change.

                          However, it's now clear that lots of developers are using CNCopySupportedInterfaces for things other than dealing with captive networks.  That feedback is being considered by the relevant parties here at Apple and there may be future changes based on it.  I can't offer any further insight into that process.

                          Regardless of how this issue is resolved, I've made it clear that this issue needs to be covered in the release notes (r. 22068424).

                          Share and Enjoy

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

                          • 10. Re: get current WiFi ssid
                            Turbo3 Level 1 Level 1 (0 points)

                            My request to use the Network Extension framework has been denied (626193135).

                             

                            My already released app will crash when my users upgrade to iOS 9. This will make for hundreds of unhappy customers.

                             

                            What is an alternative way to read the current WiFi SSID if I am not allowed to use the Network Extension framework?

                            • 11. Re: get current WiFi ssid
                              adpward Level 1 Level 1 (0 points)

                              Hi Turbo3, were you given a reason?

                              • 12. Re: get current WiFi ssid
                                eskimo Apple Staff Apple Staff (7,960 points)

                                adpward wrote:

                                were you given a reason?

                                I can't speak to Turbo3's specific case but, in general, the NEHotspotHelper mechanism is designed for folks doing captive network management apps.  If you're not creating a captive network management app, it's not appropriate to use NEHotspotHelper.

                                Turbo3 wrote:

                                My already released app will crash when my users upgrade to iOS 9. This will make for hundreds of unhappy customers.

                                Yeah, that's obviously not good, and we're taking this issue very seriously.  Alas, I can't offer further insight into this issue at this time.  I will, however, post updates to this thread as things develop.

                                What is an alternative way to read the current WiFi SSID if I am not allowed to use the Network Extension framework?

                                Just to satisfy my own curiosity, what are you using the current Wi-Fi SSID for?

                                Share and Enjoy

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

                                • 13. Re: get current WiFi ssid
                                  maverick808 Level 1 Level 1 (10 points)

                                  Can't speak for Turbo, but I've had a lot of experience with Wi-Fi and one of the most common reasons many of our customers want access to it is as an extra security vector.  For example, banks perform numerous checks to try to verify the user and verifying they are connecting from a previously known BSSID/SSID combo is commonly used for that type of security weighting.

                                  • 14. Re: get current WiFi ssid
                                    JetForMe Level 1 Level 1 (0 points)

                                    Thanks, Quinn. Not the answer we're hoping for, but it helps us speculate about the future. I filed Radar 22147499.

                                     

                                    I'd also like to point out that deprecation means an API is unchanged for now, but will go away in the future. It seems to me that you might as well remove CNCopySupportedInterfaces() altogether if it's always going to return NULL, rather than mark it deprecated.

                                    1 2 3 Previous Next