You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you ask a permission, android shows a popup, if at this moment app go to background and than back to foreground
PermissionCallback will trigger permissionsGranted but actually not. It happens because at this moment will call onRequestPermissionsResult with empty grantResults.
How we can see, method verifyPermissions return true by default, and how result wrong trigger of permissionGranted.
I think this method should return false by default.
fun verifyPermissions(grantResults: IntArray): Boolean {
for (result in grantResults) {
if (result != PackageManager.PERMISSION_GRANTED) {
return false
}
}
return true
}
The text was updated successfully, but these errors were encountered:
Hi, I just tested this (Android 13) and I cannot recreate this scenario.
Once test app goes to background - Activity.onRequestPermissionsResult() is called, and inside Nammu.onRequestPermissionsResult() this permission is marked as refused.
Please retest and maybe provide if you can an additional info for me to recreate the problem.
When you ask a permission, android shows a popup, if at this moment app go to background and than back to foreground
PermissionCallback will trigger permissionsGranted but actually not. It happens because at this moment will call onRequestPermissionsResult with empty grantResults.
How we can see, method verifyPermissions return true by default, and how result wrong trigger of permissionGranted.
I think this method should return false by default.
The text was updated successfully, but these errors were encountered: