[
https://issues.apache.org/jira/browse/CB-8871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcos Lima updated CB-8871:
----------------------------
Environment: Cordova 4.3.0, Camera plugin 0.3.6 (Or the newest in-devs
1.0.0 and 1.0.1), iOS 8.3 on iPhone 5S (was: Cordova 4.3.0, Camera plugin
0.3.6, iOS 8.3 on iPhone 5S)
> Camera doesn't ask for user's permission
> ----------------------------------------
>
> Key: CB-8871
> URL: https://issues.apache.org/jira/browse/CB-8871
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Environment: Cordova 4.3.0, Camera plugin 0.3.6 (Or the newest
> in-devs 1.0.0 and 1.0.1), iOS 8.3 on iPhone 5S
> Reporter: Marcos Lima
> Priority: Blocker
>
> When trying to get a picture from iPhone's Photo library, the system doesn't
> prompt for the user permission to access the albums. The iOS screen shows the
> message "This app does not have access to your photos or videos", and the
> getPicture method returns "has no access to assets" to the error callback. On
> XCode simulator it works fine, but on the real device it doesn't.
> Code:
> {color:gray}$("#selectPicture").click(function() {
> navigator.camera.getPicture(function(imageURI) {
> alert("Success: " + imageURI);
> }, function(message) {
> alert("Error: " + message);
> }, {
> quality: 50,
> destinationType:
> navigator.camera.DestinationType.FILE_URI,
> sourceType:
> navigator.camera.PictureSourceType.PHOTOLIBRARY
> });
> });{color}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]