I added location permissions to my app. When installing the app now it asks the user for permission. This is my code:
if (fragment.shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION) {
fragment.requestPermissions(....);
}
But when I have my previous app verison installed, where I didn't have this location permission and update the app then it does not ask for permission, as
fragment.shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION
returns false
Normally this should only return false when the user clicked "never ask again". What am I missing here?