I would like that when it is the first time on the application, it asks the user if it can access the photos.
But when I uninstall the application to test, the application never asks me if it can access it. It accesses it directly.
How resolve that ?
if (await Permission.photos.request().isGranted) {
//CODE
}
AndroidManifest :
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>