配置获取隐私数据权限声明
2016-09-18 09:30
232 查看
iOS 10的一大变化是更强的隐私数据保护。在文档中是这么描述的:
You must statically declare your app’s intended use of protected data classes by including the appropriate purpose string keys in your Info.plist file.
简单的说访问用户数据都需要现在Info.plist中声明,否则会crash。
这些用户数据包括:
Contacts, Calendar, Reminders, Photos, Bluetooth Sharing, Microphone, Camera, Location, Health, HomeKit, Media Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider.
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092732412-2119949042.jpg)
10之前只需要获取位置时配置,现在更严格了,比如需要调用相册访问权限,也需要在Info.plist中配置privacy。
好在这些key的名字在Xcode 8中已经有了自动补全。添加一个属性,输入Privacy后就会出现自动提示:
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092820869-1253036955.jpg)
后面填的string会在弹出用户允许时展示在描述里。谢谢@Nidom提醒,如果描述空着提交AppStore时会拒绝。
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092847417-1698292840.png)
相关链接:
原文:Privacy Settings in iOS 10
http://useyourloaf.com/blog/privacy-settings-in-ios-10/
WWDC 2016 Session 709 Engineering Privacy for Your Users
https://developer.apple.com/videos/play/wwdc2016/709/
Full list of Info.plist keys
http://t.cn/z8BEnXr
You must statically declare your app’s intended use of protected data classes by including the appropriate purpose string keys in your Info.plist file.
简单的说访问用户数据都需要现在Info.plist中声明,否则会crash。
这些用户数据包括:
Contacts, Calendar, Reminders, Photos, Bluetooth Sharing, Microphone, Camera, Location, Health, HomeKit, Media Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider.
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092732412-2119949042.jpg)
10之前只需要获取位置时配置,现在更严格了,比如需要调用相册访问权限,也需要在Info.plist中配置privacy。
好在这些key的名字在Xcode 8中已经有了自动补全。添加一个属性,输入Privacy后就会出现自动提示:
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092820869-1253036955.jpg)
后面填的string会在弹出用户允许时展示在描述里。谢谢@Nidom提醒,如果描述空着提交AppStore时会拒绝。
![](https://images2015.cnblogs.com/blog/708266/201609/708266-20160918092847417-1698292840.png)
相关链接:
原文:Privacy Settings in iOS 10
http://useyourloaf.com/blog/privacy-settings-in-ios-10/
WWDC 2016 Session 709 Engineering Privacy for Your Users
https://developer.apple.com/videos/play/wwdc2016/709/
Full list of Info.plist keys
http://t.cn/z8BEnXr
相关文章推荐
- 兼容iOS 10:配置获取隐私数据权限声明
- 兼容iOS 10:配置获取隐私数据权限声明
- iOS10-配置获取隐私数据权限声明
- 兼容iOS 10:配置获取隐私数据权限声明
- 兼容iOS 10:配置获取隐私数据权限声明
- 兼容iOS 10:配置获取隐私数据权限声明
- iOS10-配置获取隐私数据权限声明
- iOS10 获取隐私数据权限声明
- 无废话Android之android下junit测试框架配置、保存文件到手机内存、android下文件访问的权限、保存文件到SD卡、获取SD卡大小、使用SharedPreferences进行数据存储、使用Pull解析器操作XML文件、android下操作sqlite数据库和事务(2)
- C#.NET 通用权限管理系统组件 大数据多表分页获取部分列的参考方法
- EAS 特殊数据权限配置
- android mainfest总配置文件相关权限声明
- ThinkPHP第四天(U函数,URL类型参数配置,伪静态后缀名配置,数据传递与获取$_GET等)
- SSI环境下 C3P0配置导致获取数据失败
- EAS BOS中有关特殊数据权限的配置问题
- C#.NET 权限管理系统组件 - 大数据只获取更新部分数据列的标准例子
- 使用loadrunner11配置参数时,从oracle数据库中获取数据的方法
- linux设备上的Onvif 实现12: 获取媒体配置数据
- C#.NET 通用权限管理系统组件 大数据多表分页获取部分列的参考方法
- 配置实现-自创html生成模板搭配xml获取数据无需写代码实现静态网站