Asking for mobile permissions only when necessary

I’m using the very helpful and straightfoward (thanks) @ionic-native/image-picker.

Is there any way to have my app ask for permission to access to the file system only when it needs to access the file system, rather than on install?


The app permissions are dynamically asked after API 23 (android 6.0). If you have a phone that has a version older than Marshmellow (Say lollipop), you will need to provide permissions when you install the app.
For API 23 and above The permission is accessed when you use the getPictures() function.

You can also ask for permission with requestReadPermission() function.

1 Like