Added camera permission management for iOS 8.