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

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-101133525
  
    I believe localization should never be up to the user of the component; the 
component itself should handle localization seamlessly.
    
    This is how the Cordova Media Capture plugin does it:
    1. 
https://github.com/apache/cordova-plugin-media-capture/tree/master/src/ios/CDVCapture.bundle
    2. 
https://github.com/apache/cordova-plugin-media-capture/blob/f5514cabe19648a4c952bf05c09e088510895165/src/ios/CDVCapture.m#L39
    
    To add more localizations, just add the appropriate .lproj folder with a 
Localizable.strings file -- send pull requests for adding each language as 
volunteers provide the strings.
    
    In cordova-ios 4.0.x (coming in the future), these resource API functions 
will be available for plugin authors so they can easily localize their plugins: 
https://github.com/apache/cordova-ios/blob/ddadf8992bb4b34cd728ed9a21e880ad20e551db/CordovaLib/Classes/Public/CDVPlugin%2BResources.m#L24



> [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
>            Assignee: Shazron Abdullah
>            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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to