You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Marcos Lima (JIRA)" <ji...@apache.org> on 2015/04/17 16:24:59 UTC

[jira] [Closed] (CB-8871) Camera doesn't ask for user's permission

     [ https://issues.apache.org/jira/browse/CB-8871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcos Lima closed CB-8871.
---------------------------
    Resolution: Cannot Reproduce

The device in question had restrictions enabled for pictures.

> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org