1

I'm developing an Ionic App for Android and I want to let the user upload a picture from camera or gallery, as the standard browser does. The Ionic app uses the web, but when I want to upload a picture it only let me upload a picture from files.

So this is what I want to achieve:

enter image description here

But this is what I get:

enter image description here

Thanks!!

Community
  • 1
  • 1
ATellez
  • 105
  • 1
  • 10

1 Answers1

1

Add this to your config.xml (I am using ionic and crosswalk)

<access origin="image/*" launch-external="yes"/>

This worked for me, and is based on this question:

How to access a mobile's camera from a web app?

Community
  • 1
  • 1
Mercedes
  • 79
  • 6