As of Android 12 (IIRC), there's another action the user can take when they see the permission dialog: the back button.
Pressing back on the first time a permission dialog is shown, doesn't mean the user denied a permission (even though the permission will not be granted of course), as so, the flag shouldShowRationale will return false and the library will falsely identify it as "permanently denied".
I don't think it's possible to properly identify if the permission was permanently denied using the current Android APIs.
As of Android 12 (IIRC), there's another action the user can take when they see the permission dialog: the back button.
Pressing back on the first time a permission dialog is shown, doesn't mean the user denied a permission (even though the permission will not be granted of course), as so, the flag
shouldShowRationale
will returnfalse
and the library will falsely identify it as "permanently denied".I don't think it's possible to properly identify if the permission was permanently denied using the current Android APIs.