We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onPermissionsResult call back isn't triggered on android.permission.POST_NOTIFICATIONS on allow/deny (API 33)
Use a generic impl as the following one to trigger the permission request.
fun UiContent.toPermissionDialog( rationale: @Composable () -> Unit = { }, onPermissionResultCallback: (allPermissionsGranted: Boolean) -> Unit = {}, ) { val permissionState = rememberMultiplePermissionsState( permissions = permissions, onPermissionsResult = { permissionGrantMap -> onPermissionResultCallback(permissionGrantMap.values.all { it }) } ) if (permissionState.allPermissionsGranted) { onPermissionResultCallback(true) } else { if (permissionState.shouldShowRationale) { rationale.invoke() } LaunchedEffect(key1 = this) { permissionState.launchMultiplePermissionRequest() } } }
onPermissionsResult should be triggered
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Sorry, something went wrong.
how it's goin ?
No branches or pull requests
Describe the bug
onPermissionsResult call back isn't triggered on android.permission.POST_NOTIFICATIONS on allow/deny (API 33)
To Reproduce
Use a generic impl as the following one to trigger the permission request.
Expected behavior
onPermissionsResult should be triggered
Environment:
The text was updated successfully, but these errors were encountered: