Syed Ali Salman Syed Ali Salman - 4 months ago 109
iOS Question

iOS 10 - Changes in asking permission of Camera, microphone and Photo Library

iOS 10
Now Requires User Permission to Access Media Library, Photos, Camera and other Hardware like these. The solution for this is to add their keys into
info.plist
with description for user that how we are using their data,

I could only find few keys

NSPhotoLibraryUsageDescription
NSMicrophoneUsageDescription
NSCameraUsageDescription


I want to know if there are more keys also for other hardware as in
iOS 10
if you haven't provided
info.plist
with proper keys your application will crash if build using XCode - 8 beta.

Answer

There is a list of all Cocoa Keys that you can specify in your Info.plist file:

https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html

iOS required permissions to access microphone, camera and media library earlier (iOS6, iOS7), so nothing has changed in that matter in iOS10.

Comments