info.plist相关设置

2018-02-23  本文已影响5人  iaiayao

网络设置

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需要您的同意,才能访问媒体资料库

上一篇下一篇

猜你喜欢

热点阅读