s

    Se7eN

    1 year ago
    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
    Colton Idle

    Colton Idle

    1 year ago
    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.
    s

    Se7eN

    1 year ago
    Yeah that's better