[NEHotspotHelper supportedNetworkInterfaces] always returns nil
| Originator: | davepeck | ||
| Number: | rdar://22189866 | Date Originated: | 07-Aug-2015 |
| Status: | Closed | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 9 beta 5 (13A4325c) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Even with proper entitlements, and a working Wi-Fi connection, [NEHotspotHelper supportedNetworkInterfaces] returns nil in current iOS 9 betas. Steps to Reproduce: 1. Build and install an app with the com.apple.developer.networking.HotspotHelper entitlement enabled 2. Connect device to a Wi-Fi network 3. Call [NEHotspotHelper supportedNetworkInterfaces] Expected Results: EXPECTED: Get an array containing at least one supported network interface Actual Results: ACTUAL: Get a nil return value Version: iOS 9.0 beta 5 (13A4325c) Notes: It's unclear from the documentation whether you must first register a hotspot helper via [NEHotspotHelper registerWithOptions:queue:handler:] but even if I do this, [NEHotspotHelper supportedNetworkInterfaces] returns nil. (To be clear, my team *does* have the proper NetworkExtension entitlements, as do the provisioning profile and my app's entitlements file.) Configuration: iPod Touch 5th Generation (MD723LL/A) Attachments:
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!
This was fixed in iOS 9.0 beta 6, and works correctly in iOS 9.0.0 and above.
Follow-up from Apple
Engineering has requested the following information regarding your bug report:
You must successfully invoke [NEHotspotHelper registerWithOptions:queue:handler:] before [NEHotspotHelper supportedNetworkInterfaces] will return non-nil. Does the register method return YES?
Please provide any requested information using the Apple Bug Reporter at http://bugreport.apple.com. Bug reports requiring your attention will appear under ‘My Originated Problems’. Once your report has been updated, Engineering will be alerted of the new information.
Thank you for your assistance in helping us discover and isolate bugs within our products.