-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Trouble with Android 11 and a new option for permissions "Only this time/Ask every time" #333
Comments
Hi @slobodanantonijevic , Can you prepare a minimum working example of this issue? Generally speaking, if app was restarted when looking on permissions is should ask again for those, so I'm not fully sure what isn't working as expected. |
@galuszkak Yes, Android 11 (API = 30) has changed permissons a little, please update it, bro. On my case, when confirm permission dialog show:
On my code, it always open permission settings like this:
|
@galuszkak Any update on this issue? the library always returns permission as granted for the "Ask every time" option. But as per the behavior of Android 11, the permission should be reset every time the app is restarted. |
I have the same problem when user clicks outside the permission dialog. It's always jump to 'else -> openPermissionSettings()''. |
The problem is that with new Android 11 there is a new option (apart from "always" and "only in app") for permissions (eg. Location) which is "Only this time" or "Ask every time" depending on which screen you get it. The thing is the app with this set has to ask permission every time the user starts a new session in the app.
However your library always returns permission as granted for this option chosen. While the permission should be reset every time the app is restarted.
The text was updated successfully, but these errors were encountered: