android cordova app does not prompt to ask media or storage when select image from phone storage

Viewed 14

I am developing an android/ios cordova app, and I need to create a button to click to select image from storage and perform QR scan.

Currently I am using the normal one as follow:

<input type="file" id="qr-img-file" accept="image/*" (change)="scanQrFile($event)" #qrImgFile>

I believe this is web approach, thus when I click on the button, it does not prompt me to ask for permission to access storage.

I would like to find a way to do it, like Instagram, it will prompt you to access storage before you select image from your phone. Any way I can do for this?

Or when I launch the app, prompt me for storage access permission also can.

0 Answers
Related