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

iOS 10 - Changes in asking permissions of Camera, microphone and Photo Library causing application to crash

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 already required permissions to access microphone, camera, and media library earlier (iOS6, iOS7), but since iOS10 the apps seems to be crashing if you don't provide the description why you are asking for the permission.