[UPDATED privacy keys list to iOS 13 - see below]个
您可以在Info.plist
文件中指定所有Cocoa Keys
项:
https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html
(Xcode: Target -> Info -> Custom iOS Target Properties)
iOS之前已经要求获得访问麦克风、摄像头和媒体库的权限(iOS 6、iOS 7),但如果您不提供请求权限的说明(不能为空),则为since iOS 10 app will crash.
Privacy keys with example description:
个
Source
Alternatively, you can open 101 as source code:
个
Source个
And add privacy keys like this:个
<key>NSLocationAlwaysUsageDescription</key>
<string>${PRODUCT_NAME} always location use</string>
List of all privacy keys: [UPDATED to iOS 13]个
NFCReaderUsageDescription
NSAppleMusicUsageDescription
NSBluetoothAlwaysUsageDescription
NSBluetoothPeripheralUsageDescription
NSCalendarsUsageDescription
NSCameraUsageDescription
NSContactsUsageDescription
NSFaceIDUsageDescription
NSHealthShareUsageDescription
NSHealthUpdateUsageDescription
NSHomeKitUsageDescription
NSLocationAlwaysUsageDescription
NSLocationUsageDescription
NSLocationWhenInUseUsageDescription
NSMicrophoneUsageDescription
NSMotionUsageDescription
NSPhotoLibraryAddUsageDescription
NSPhotoLibraryUsageDescription
NSRemindersUsageDescription
NSSiriUsageDescription
NSSpeechRecognitionUsageDescription
NSVideoSubscriberAccountUsageDescription
更新2019年:
在过go 的几个月里,我的两个应用程序在审查期间是rejected分,因为相机使用说明没有说明我如何处理拍摄的照片.
我不得不将描述从${PRODUCT_NAME} need access to the camera to take a photo
改为${PRODUCT_NAME} need access to the camera to update your avatar
,尽管应用程序的上下文很明显(用户点击了头像).
似乎苹果现在更加关注隐私使用说明,我们应该详细解释为什么我们要申请许可.