Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8259217905 for ; Sat, 10 Jan 2015 00:17:33 +0000 (UTC) Received: (qmail 67983 invoked by uid 500); 10 Jan 2015 00:17:34 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 67957 invoked by uid 500); 10 Jan 2015 00:17:34 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 67946 invoked by uid 99); 10 Jan 2015 00:17:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jan 2015 00:17:34 +0000 Date: Sat, 10 Jan 2015 00:17:34 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7667) [Camera] iOS8: Handle case where camera is not authorized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14272128#comment-14272128 ] ASF GitHub Bot commented on CB-7667: ------------------------------------ Github user shazron commented on the pull request: https://github.com/apache/cordova-plugin-camera/pull/49#issuecomment-69424925 My apologies, the code has been refactored to be testable, so it doesn't merge cleanly anymore. It should be an easy rebase from your patch (I hope). > [Camera] iOS8: Handle case where camera is not authorized > --------------------------------------------------------- > > Key: CB-7667 > URL: https://issues.apache.org/jira/browse/CB-7667 > Project: Apache Cordova > Issue Type: Sub-task > Components: Plugin Camera, Plugin Media Capture > Affects Versions: 3.5.0 > Environment: iOS 8 > Reporter: Dan Polivy > Priority: Minor > > In iOS 8, it's possible for the camera to be disabled for any given app; in iOS 7, this was only possible in certain regions (e.g. China). > If the camera is disabled, and someone launches the Camera plugin to capture an image from the camera, they'll just get the camera UI with a black screen, and no indication that the camera permission is disabled for the app. A better UX would be to show the user a prompt indicating that the camera permission is disabled, and (on iOS 8) providing a button to take them to the Settings app to change it. > 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]; -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org