Skip to content

[Permissions] Status bar blinks on launchPermissionRequest() #1816

Open
@garylkz

Description

@garylkz

Description

When requesting permission with PermissionState.launchPermissionRequest() in light mode on Android 14 or above when the user has rejected the permission before, the status bar will turn white and black (blink) for a moment.

Steps to reproduce

  1. Calls PermissionState.launchPermissionRequest() for the first time, then rejects it
  2. Calls the function again, in light mode

Expected behavior

  • I expect the blinking to not occur, i.e. don't trigger the dialog to begin with when the user already rejected it before.
  • If launchPermissionRequest() is not supposed to be used this way, I expect that there is a mean / function that checks whether the permission is rejected before so that this issue can be avoided directly, as currently there is only PermissionState.status.isGranted, but none that checks whether it was rejected before

Additional context

I suspect that it occurs due to the app attempting to show the permission request dialog, but user has already rejected it before, which instantly dismisses the popup, causing the blink.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions