NEHotspotConfigurationManager.getConfiguredSSIDs(completionHandler:) returns an empty string instead of the domain name for HS2.0 configurations

Originator:brandon
Number:rdar://38801525 Date Originated:2018/03/23
Status:Open Resolved:
Product:Network Extensions Framework Product Version:iOS 11
Classification:Bug Reproducible:Always
 
Area:
Network Extensions Framework

Summary:

According to the documentation for NEHotspotConfigurationManager.getConfiguredSSIDs:

```
Return Value

A string array containing a list of the SSIDs or Hotspot 2.0 domain names of the networks your app has configured.
```

This static method is really useful because it allows app developers using the Hotspot Configuration APIs to rely on the framework to be the source of truth for the state of applied configurations.

NEHotspotConfigurationManager.getConfiguredSSIDs(completionHandler:) returns an empty string instead of the domain name for HS2.0 configurations. This behaviour was consistent during my testing regardless of how soon it was invoked after the configuration was applied. This doesn't happen with SSID configurations during my debugging, although I first started investigating this issue because a UI bug pointed in the direction of it happening with an SSID configuration.

Steps to Reproduce:

See attached project. In short: apply an HS2.0 configuration and invoke getConfiguredSSIDs after the apply completion handler is invoked. Alternatively, invoke getConfiguredSSID later in the same app lifecycle or after another app launch. The array of SSIDs provided in the completion handler contains a singl, empty string.

Expected Results:

The configured SSIDs also includes the domain names of HS2.0 networks configured by the app.

Actual Results:

The configured SSIDs includes an empty string instead of the domain name of a configured HS2.0 network.

Version/Build:

11.2.6 (15D100)

Configuration:

iPhone 6
The HS2.0 network configured with the sample project was not also configured with another app or configuration profile at the time of testing.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!