NEHotspotNetworkSecurityType Api not working as expected.

Hi Team,

We are using the above mentioned api by apple to get the securityType of WiFi available and connected, but for all the type of WiFi it is giving that the security type is open even if the Wifi security type is not open.

Can you please help in providing a solution for getting the correct securityType of the available and connected WiFi

As far as I know this API works as specified. I recommend that you do the following:

  1. Create a small test project with a single button that calls this API and prints the results.

  2. Build, run, and test it on a device.

Does that reproduce the problem? If so:

  • What version of Xcode are you building with?

  • What version of iOS are you testing on?

  • What’s the expected result? That is, what’s the security type of the network that iOS is associated with?

  • Are you sure that the +fetchCurrentWithCompletionHandler: call succeeded? If it fails, it calls the completion handler with nil and it’s easy to go from there to a zero security type (with Objective-C).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

NEHotspotNetworkSecurityType Api not working as expected.
 
 
Q