Ionic file chooser cant access gallery

file chooser works fine for all other folders but not gallery!! any thoughts on the issue i used the code on the ionic page
.then(uri => console.log(uri))
.catch(e => console.log(e));

Hello, the same with me. I had this error just with Huawei mobiles. When appears the side menu and I push on Gallery, Logcat shows this error:

Fatal Gallery uncaughtException java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.IllegalArgumentException


I ended up using the camera plugin to navigate instead. Works better