cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "IagoSRL (JIRA)" <>
Subject [jira] [Commented] (CB-11382) Camera will not open
Date Wed, 20 Jul 2016 11:00:27 GMT


IagoSRL commented on CB-11382:

A workaround that may help some people: set the targetSdkVersion of your project to 22 or
lower (that's immediately before Android 6 / API 23). That way, the new permissions management
will not be used and the camera plugin will work.
Do it with next preference at the config.xml:
<preference name="android-targetSdkVersion" value="22" />

Take care: doing that, the app or included plugins cannot use any new feature from a higher
Android API level.
Note: Even with that, the app can run at Android 6 devices and newer.
Google Play note: if you have already uploaded and published an APK with a target SDK of 23
(the default used at latest cordova-android), you cannot use this solution since the store
will prevent you from downgrading the target SDK version of your app. This happens on any
channel: alpha, beta and production.

I have this last problem, I cannot go back and my production App is just broken because of
this bug, since I updated cordova-android without notice this could happen.

> Camera will not open
> --------------------
>                 Key: CB-11382
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Ivan
> I'm using Cordova Camera Plugin (
and starting with this line
>, 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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message