New issue
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
Android 11 runtime permission authorization popup does not pop up #707
Comments
Sorry we were focusing on maven central migration, would you mind elaborate on the issue? |
I am also facing the same issue i.e. Android 11 runtime permission authorization popup not coming. We updated the to version 4.8.0 also. |
@misbahazmi are you using ktx or a normal one? |
trying to repro the issue with |
@hotchemi - I am using normal one. I will try to reproduce the same. Thanks |
any update here? |
|
Can anyone give us an example(wondering this is not the library-specific issue)? 👀 |
Ok I think I've repro my issue in the According to the doc, the system enforces us to request I've granted the private lateinit var locationRequest: PermissionsRequester
private lateinit var backgroundLocationRequest: PermissionsRequester
override fun onAttach(context: Context?) {
locationRequest = constructLocationPermissionRequest(
LocationPermission.COARSE, LocationPermission.FINE,
onShowRationale = ::onLocationShowRationale,
onPermissionDenied = ::onLocationDenied,
onNeverAskAgain = ::onLocationNeverAskAgain
) {
backgroundLocationRequest.launch()
}
backgroundLocationRequest = constructLocationPermissionRequest(
LocationPermission.BACKGROUND,
onShowRationale = ::onLocationShowRationale,
onPermissionDenied = ::onLocationDenied,
onNeverAskAgain = ::onLocationNeverAskAgain
) {
Toast.makeText(requireActivity(), "Enable location!", Toast.LENGTH_SHORT).show()
}
}
// locationRequest.launch() |
Turns out the dialog for the permissions didn't show up because I never requested them. My stupid ass thought the constructLocationPermissionRequest automatically added the location permissions for me, which I see now that it don't. Strike me from "having this issue" list. |
Is there any update or workaround for this? Blocks me to upgrade android version |
oh sorry didn't notice the update, let us check |
@hotchemi Is there any update or workaround? |
Now considering what to do here. |
Right now I'm thinking of creating one more pattern of |
FAQs
Overview
Expected
Actual
Environment
Reproducible steps
The text was updated successfully, but these errors were encountered: