I'm struggling to handle the permission request fl...
# compose
d
I'm struggling to handle the permission request flow. I think I need to pass down a callback or make my activity a CompositionLocal to access
shouldShowRequestPermissionRationale()
. What are people doing?
a
There's an Accompanist branch you'd probably find helpful: https://github.com/google/accompanist/tree/mv/permissions/permissions
d
Thank you! I was vaguely thinking of building something like that, I like the API. Unfortunately that won't help with other things you have to request like location settings being enabled or google play services, but it's a good start.
Unfortunately that looks like it was started yesterday and isn't quite ready yet, but it's interesting
c
@Manuel Vivo
m
Yeah, I saw this thread 😄 permissions is work in progress, hope to land this soon. Still need to make the tests more deterministic as they’re a bit flaky in CI and take care of some comments 👍