Camera (navigator.camera.getPicture) not working on Android but works on IOS

Do you have your content-security-policy set up for this file?

Here…

<meta http-equiv="Content-Security-Policy" content="img-src 'self' data:; default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'" />

I’m no expert in this, but should there be a file:// entry in your CSP?

      <access origin="*" />
      <access origin="cdvfile://" /> 
      <allow-navigation href="*" />
	<allow-navigation href="file://" />
	<allow-navigation href="data://" />
    <allow-intent href="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />

Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)

It looks like you sent an excerpt from your config.xml file. By CSP, I’m referring to the Content-Security-Policy in your index.html.

you mean this in my index.html:

<meta http-equiv="Content-Security-Policy" content="img-src 'self' data:; default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'" />

Yes. It should be there, as far as I know (i’m no expert on this).

Do you know how do I set AllowFileAccess within WebView on Android sdk30?

I found this thread on the cordova-android Slack channel:

(I searched on AllowFileAccess)

Thank you very much, this works for me:
<preference name="AndroidInsecureFileModeEnabled" value="true" />