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 15:33:59 UTC

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

Marcos Lima created CB-8871:
-------------------------------

             Summary: 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, 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