Join Slack
Powered by
Has anyone used the in-app review API with compose...
# compose
s
Se7eN
07/03/2021, 4:18 PM
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
Colton Idle
07/03/2021, 5:45 PM
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
Se7eN
07/03/2021, 6:42 PM
Yeah that's better
2
Views
Open in Slack
Previous
Next