cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7667) [Camera] iOS8: Handle case where camera is not authorized
Date Tue, 30 Sep 2014 22:01:35 GMT

    [ https://issues.apache.org/jira/browse/CB-7667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153839#comment-14153839
] 

ASF GitHub Bot commented on CB-7667:
------------------------------------

GitHub user dpolivy opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/49

    CB-7667 iOS8: Handle case where camera is not authorized

    In iOS 7+, when the app does not have access to the camera, show a
    prompt notifying the user so they're not puzzled by looking at a black
    screen.
    
    In iOS 8+, include a link on the dialog to open the Setting app to allow
    the user to change their Camera privacy setting.
    
    Fixes https://issues.apache.org/jira/browse/CB-7667

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dpolivy/cordova-plugin-camera cb7667

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-camera/pull/49.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #49
    
----
commit cd3b637822e173b9ed9149fa648f45f8a46b5de9
Author: Dan Polivy <dan@cellartracker.com>
Date:   2014-09-30T21:28:24Z

    CB-7667 iOS8: Handle case where camera is not authorized
    
    In iOS 7+, when the app does not have access to the camera, show a
    prompt notifying the user so they're not puzzled by looking at a black
    screen.
    
    In iOS 8+, include a link on the dialog to open the Setting app to allow
    the user to change their Camera privacy setting.

----


> [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: Bug
>          Components: iOS, 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)

Mime
View raw message