Hi, I am trying to determine if the WiFi network my iPhone is currently connected to is secure or not.
I am calling NEHotspotNetwor.fetchCurrent(completionHandler:)
I have
- location permissions granted with precise location.
- Access WiFi Information Entitlement enabled
The returned network object's isSecure
is always false even though securityType
is 2 (i.e .personal)
My network security type is WPA2 Personal, both my Mac and iPhone settings recognise that my network is secure
is there something I am missing or an entitlement I need to enable for the API to recognise that my network is secure?
I am running on iOS 15.4.1. Thanks