You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/07/07 11:20:40 UTC
[GitHub] [cordova-plugin-camera] NoelDeMartin commented on issue #673: Can't open camera on Android 11 with targetSdkVersion=30
NoelDeMartin commented on issue #673:
URL: https://github.com/apache/cordova-plugin-camera/issues/673#issuecomment-875521098
For anyone getting this issue, this has been solved in https://github.com/apache/cordova-plugin-camera/pull/684 and https://github.com/apache/cordova-plugin-camera/pull/739 but hasn't been merged yet. Until the fix is released, you can fix it by adding the following to the config.xml in your project (under `<platform name="android">`):
```xml
<config-file parent="/*" target="AndroidManifest.xml">
<queries>
<intent>
<action android:name="android.media.action.IMAGE_CAPTURE" />
</intent>
<intent>
<action android:name="android.intent.action.GET_CONTENT" />
</intent>
</queries>
</config-file>
```
If you're using `allowEdit`, you should also add `android.intent.action.PICK`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org