info.plist相关设置

网络设置

iOS9引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)

新特性要求App内访问的网络必须使用HTTPS协议。

但是现在公司的项目使用的是HTTP协议,使用私有加密方式保证数据安全。现在也不能马上改成HTTPS协议传输。

1.在Info.plist中添加NSAppTransportSecurity类型Dictionary。

2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

权限设置

NSPhotoLibraryUsageDescription    App需要您的同意,才能访问相册

NSCameraUsageDescription    App需要您的同意,才能访问相机

NSMicrophoneUsageDescription    App需要您的同意,才能访问麦克风

NSLocationUsageDescription    App需要您的同意,才能访问位置

NSLocationWhenInUseUsageDescription    App需要您的同意,才能在使用期间访问位置

NSLocationAlwaysUsageDescription    App需要您的同意,才能始终访问位置

NSCalendarsUsageDescription    App需要您的同意,才能访问日历

NSRemindersUsageDescription    App需要您的同意,才能访问提醒事项

NSMotionUsageDescription     App需要您的同意,才能访问运动与健身

NSHealthUpdateUsageDescription    App需要您的同意,才能访问健康更新

NSHealthShareUsageDescription    App需要您的同意,才能访问健康分享

NSBluetoothPeripheralUsageDescription    App需要您的同意,才能访问蓝牙

NSAppleMusicUsageDescription    App需要您的同意,才能访问媒体资料库

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容