Ionic 4: how to intercept and request camera persmissions from <input type="file">

Because of the lack of support for the codova-plugin-photo-library, I’ve gone the route of using the native HTML input.

Everything is working fine with choosing images/files. But if a user would click on the options to take a picture with the camera the app crashes because it doesn’t have permission - understandably.

Is there a way to intercept from the webview if a user has selected camera and to request access?

How exactly is your app being call? If a PWA, this technique seems to work with no problems…

https://ionic-pwa-camera-no-plugins.firebaseapp.com/