iOS 13 wifi ssid and bssid in wwdc19 As we announced at WWDC19, we're making changes to further

Dear $firstName,

As we announced at WWDC19, we're making changes to further protect user privacy and prevent unauthorized location tracking. Starting with iOS 13, the CNCopyCurrentNetworkInfo API will no longer return valid Wi-Fi SSID and BSSID information. Instead, the information returned by default will be: 

SSID: “Wi-Fi” or “WLAN” (“WLAN" will be returned for the China SKU)
BSSID: "00:00:00:00:00:00" 

If your app is using this API, we encourage you to adopt alternative approaches that don’t require Wi-Fi or network information. Valid SSID and BSSID information from CNCopyCurrentNetworkInfo will still be provided to VPN apps, apps that have used NEHotspotConfiguration to configure the current Wi-Fi network, and apps that have obtained permission to access user location through Location Services. 

Test your app on the latest iOS 13 beta to make sure it works properly. If your app requires valid Wi-Fi SSID and BSSID information to function, you can do the following:

  • For accessory setup apps, use the NEHotSpotConfiguration API, which now has the option to pass a prefix of the SSID hotspot your app expects to connect to.
  • For other types of apps, use the CoreLocation API to request the user’s consent to access location information.


Learn more by reading the  updated documentation or viewing the the Advances in Networking session video from WWDC19. You can also submit a TSI for code-level support. 

Best regards, 
Apple Developer Relations

 

 

正如我们在WWDC19上宣布的那样,我们正在进行更改以进一步保护用户隐私并防止未经授权的位置跟踪。从iOS 13开始,CNCopyCurrentNetworkInfo API将不再返回有效的Wi-Fi SSID和BSSID信息。以后返回默认信息将是:

SSID:“Wi-Fi”或“WLAN”(中国SKU将返回“WLAN”)
BSSID:“00:00:00:00:00:00”

如果您的应用使用此API,我们建议您采用不需要Wi-Fi或网络信息的替代方法。来自CNCopyCurrentNetworkInfo的有效SSID和BSSID信息仍将提供给VPN应用程序,使用NEHotspotConfiguration配置当前Wi-Fi网络的应用程序,以及已获得通过位置服务访问用户位置的权限的应用程序。

在最新的iOS 13测试版上测试您的应用,以确保其正常运行。如果您的应用需要有效的Wi-Fi SSID和BSSID信息才能运行,您可以执行以下操作:
对于附件设置应用程序,请使用NEHotSpotConfiguration API,该API现在可以选择传递应用程序期望连接的SSID热点的前缀。
对于其他类型的应用程序,请使用CoreLocation API请求用户同意访问位置信息。

通过阅读更新的文档或查看WWDC19中的网络会话进展视频,了解更多信息。您还可以提交TSI以获得代码级支持。

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值