1. 程式人生 > >info.plist檔案裡面新增描述 -> 配置定位,相簿等

info.plist檔案裡面新增描述 -> 配置定位,相簿等

<key>NSAppleMusicUsageDescription</key>

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

<key>NSBluetoothPeripheralUsageDescription</key>

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

<key>NSCalendarsUsageDescription</key>

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

<key>NSCameraUsageDescription</key>

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

<key>NSHealthShareUsageDescription</key>

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

<key>NSHealthUpdateUsageDescription</key>

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

<key>NSLocationAlwaysUsageDescription</key>      //後臺定位耗電

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

<key>NSLocationUsageDescription</key>

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

<key>NSLocationWhenInUseUsageDescription</key>

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

<key>NSMicrophoneUsageDescription</key>

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

<key>NSMotionUsageDescription</key>

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

<key>NSPhotoLibraryUsageDescription</key>

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

<key>NSRemindersUsageDescription</key>

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

<key>UIBackgroundModes</key>
---------------------
添當前的位置會持續使用GPS定位服務,相比其他操作會消耗更多的電量.GPS在使用期間會影響電池續航時間.   在上線的時候需要特別註明,不然稽核通不過。