cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "IagoSRL (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-11382) Camera will not open
Date Wed, 20 Jul 2016 12:01:20 GMT

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

IagoSRL commented on CB-11382:
------------------------------

Hi again!
Found a good solution (not workaround): I was working with cordova-android 4.1.1 (default
at Phonegag 5.2.0, using Phonegap Build service), after updating to cordova-android version
5.1.1 (currently the latest avaiilable at Phonegap Build), the plugin worked again using a
targetSdkVersion of 23 (or default).
Now when trying to use getPicture, Android shows the permissions dialog and after tap Allow
everything goes as expected.

Additionally, I updated my targetSdkVersion to 23 (or left default one) to get the APK accepted
at Google Play store.

Note: I found a problem that prevented me from clicking 'Allow' button, is a problem from
other App ("File Manager" on my case), as commented at https://code.google.com/p/android/issues/detail?id=212934

Reviewing plugin README, it says "This requires cordova 5.0+", since I was using Phonegap/Cordova
5.2.0 I expected I was in the correct version. Maybe it can specify it clearer that the required
is "cordova-android 5.0+"? And add some note about Android 6 permissions, and this issue can
be closed.

> Camera will not open
> --------------------
>
>                 Key: CB-11382
>                 URL: https://issues.apache.org/jira/browse/CB-11382
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Ivan
>
> I'm using Cordova Camera Plugin (https://www.npmjs.com/package/cordova-plugin-camera)
and starting with this line
> navigator.camera.getPicture(onSuccessPhoto, onFailPhoto, { quality: 50, destinationType:
Camera.DestinationType.FILE_URI });
> On android 6.0.1. camera will not open and I got error 
> "permission denial: ... requires android.permission.read_external_storage or granturipermission()"
> On lower android version it works fine.



--
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


Mime
View raw message