Has anyone used the in-app review API with compose...
# compose
s
Has anyone used the in-app review API with compose? I'm not sure how to launch the review flow since it needs an activity. Do I need to cast my context to an activity? Or maybe use lambdas to communicate to the activity when I need to launch the flow? https://developer.android.com/guide/playcore/in-app-review/kotlin-java#launch-review-flow
c
I would have my ViewModel dictate when the in app review popup should show, and then emit an event from the VM to the activity/fragment which then listens for it. It would happen completely outside of my compose code.
1
s
Yeah that's better