iOS10之後需要添加的權限

// 相機

<key>NSCameraUsageDescription</key>

<string>App需要您的同意,才能訪問相機</string>

// 相冊

<key>NSPhotoLibraryUsageDescription</key>

<string>App需要您的同意,才能訪問相冊</string>

// 麥克風

<key>NSMicrophoneUsageDescription</key>

<string>App需要您的同意,才能訪問麥克風</string>

// 通信錄

<key>NSContactsUsageDescription</key>

<string>App需要您的同意,才能訪問通信錄</string>

// 位置

<key>NSLocationUsageDescription</key> 

<string>App需要您的同意,才能訪問位置</string> 

//在使用期間訪問位置

<key>NSLocationWhenInUseUsageDescription</key> 

<string>App需要您的同意,才能在使用期間訪問位置</string> 

//始終訪問位置

<key>NSLocationAlwaysUsageDescription</key> 

<string>App需要您的同意,才能始終訪問位置</string>  

// 日曆

<key>NSCalendarsUsageDescription</key> 

<string>App需要您的同意,才能訪問日曆</string> 

//提醒事項

<key>NSRemindersUsageDescription</key> 

<string>App需要您的同意,才能訪問提醒事項</string>  

//運動與健身

<key>NSMotionUsageDescription</key>

<string>App需要您的同意,才能訪問運動與健身</string> 

//健康更新

<key>NSHealthUpdateUsageDescription</key> 

<string>App需要您的同意,才能訪問健康更新</string>  

//健康分享

<key>NSHealthShareUsageDescription</key> 

<string>App需要您的同意,才能訪問健康分享</string>  

// 藍牙

<key>NSBluetoothPeripheralUsageDescription</key> 

<string>App需要您的同意,才能訪問藍牙</string> 

//媒體資料庫

<key>NSAppleMusicUsageDescription</key> 

<string>App需要您的同意,才能訪問媒體資料庫</string>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章