Hi folks,

I'm working on iOS 8/iPhone 6 compatibility for my Cordova app, and one thing 
that's new in iOS 8 is the ability to enable/disable access to the camera on a 
per-app basis, for all regions. (Previously, I think this was only limited to 
certain regions such as China.)

As of iOS 7, there's a new API to test whether the app has access to capture 
the desired media type:

https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVCaptureDevice_Class/index.html#//apple_ref/occ/clm/AVCaptureDevice/authorizationStatusForMediaType:

[AVCaptureDevice authorizationStatusForMediaType:mediaType];

I didn't see any existing issues or discussion on this topic, so thought I'd 
bring it up here. Is detecting this scenario, and popping up a UIAlertView 
notifying the user (and offering a button to take them to the settings app), a 
reasonable addition to the camera plugin? I'm happy to put together a PR and 
file an issue if you think it's worth adding.

Thanks,
Dan

(I'm not on the dev list, so please include me directly in all replies.)

Reply via email to