6 Replies
      Latest reply on Sep 9, 2019 8:33 AM by eskimo
      akshar001 Level 1 Level 1 (0 points)

        Hello,
        I have developed one smart home based application for one of our product,
        In an App i am fetching iphone's current wifi ssid it through an API,

        The problem is when i compile the app through xcode and directly install it from xcode to an iphone that version runs very fine in a same phone,

        But i uploaded the same app to App Store and when i download from it it can not detect the wifi ssid,

        Please elaborate this problem to me?

         

        This is the function i am using to fetch ssid

         

        - (NSString *) getSSID {

               NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces();

            wifiName = @"";

            for (NSString *ifnam in ifs) {

                NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam);

                if (info[@"SSID"]) {

                    wifiName = info[@"SSID"];

                }

            }

            return wifiName;

        }