Recently in ionic2 I faced a weird problem when using camera plugin in android . My app simply allows user to either take picture from camera or select image from gallery. When user takes picture from camera everything works fine but if user selects image from gallery , image is not displayed (using img tag). Very first difference i spotted between camera and gallery image was the uri of file. Camera image has following format file:///path/to/image.jpg where gallery image has following format content://media/external/image/238 I debugged my project using Android Studio and I found that when i try to display gallery image using img tag , following error is shown in console URL blocked by whitelist It was clear that whitelist plugin is blocking content:// requests so I tried to add content:// as whitelisted uri in my config.xml . I added the following lines <access origin="content://*" /> <allow-nagivation href="content://*" /> BUT TO NO...
I document random stuff on this Blog. It can be a piece of code , my personal experience, a fun fact or anything else.