说明:获取当前设备已连接的Wi-Fi名称是不需要申请的 stackoverflow.com/questions/6…
1.需要向苹果提交申请,提交后只能等待邮件回复, 点击跳转申请入口
2.页面内容
Hotspot Helper Request
Thank you for your interest in the NEHotspotHelper API.
The NEHotspotHelper interface allows Wi-Fi network implementers to facilitate connections to the large-scale wireless networks that they manage. For a complete explanation of all Wi-Fi management APIs available on iOS, see Technical Q&A QA1942: iOS Wi-Fi Management APIs.
账号基本信息,名称,邮箱,账号ID,是默认的,不可修改。
需要提供:Company / Product URL , App Information app名称及bundle ID 以及选择
- What’s your product’s target market? Enterprise / GovernmentEducation / Consumer
- What’s your company’s primary function? CarrierWiFi / aggregator /Other
- Describe your application and how it will use the
NEHotspotHelper APIs. 文字描述 - What authentication protocol does your solution utilize? WISPr 1.* / WISPr 2.* / Other HTTPS based / DNSPasspoint (Hotpsot 2.0) / Other
- Which IP protocol does your application support? IPv4 / IPv6
- Which Transport protocol does your application support? UDP / TCP
- Does your solution contain or integrate with an MDM server? YES / NO
- Does your solution integrate with a cloud service? (Content Filter, VPN, MDM) YES / NO
3.等待一周多后,收到被拒邮件,内容如下:
Hello,
Thank you for your interest in the NEHotspotHelper API. This API is not designed for the use you’ve identified, so this request cannot be approved.
The NEHotspotHelper API is meant to be used by hotspot network implementers to connect their users to the internet via a large aggregated network of Wi-Fi Hotspots that they manage.
NEHotspotHelper was designed to facilitate internet hotspot network connections and is not appropriate for apps trying to do IoT accessory integration, Wi-Fi location, or other low-level Wi-Fi tasks like signal strength. Specifically, NEHotspotHelper does not let your app initiate a local Wi-Fi scan, or access iOS’ internal list of nearby SSIDs.
Many perceived uses of NEHotspotHelper, such as the configuration of an IoT accessory, can be accomplished with NEHotspotConfiguration, which does not require an Apple-approved entitlement.
For information about enabling your app to configure an IoT accessory, please see the following article: Configuring a Wi-Fi Accessory to Join the User’s Network
For a complete explanation of Wi-Fi management APIs on iOS, please see Technote TN3111: iOS Wi-Fi API Overview.
For further technical assistance please visit the Apple Developer Forums.
Thank You,
Apple Developer Relations
4.NetworkExtension 接口调试,未配置文件情况下,获取不到Wi-Fi信息
- 调用 CNCopySupportedInterfaces() Log输出:nehelper sent invalid result code [1] for Wi-Fi information request,
- Capability 添加Access WiFi Information后,
- 签名报 *Provisioning profile "iOS Team Provisioning Profile: " doesn't support the Access WiFi Information capability. *Provisioning profile "iOS Team Provisioning Profile: " doesn't include the com.apple.developer.networking.wifi-info entitlement.