Setup In-App Surveys

In-App Surveys let you show surveys (including app rating) to users. You can show surveys automatically or manually, get the list of available surveys, check if the user has responded, and customize behavior.

Show survey if available

Shows a survey when one is available for the user based on targeting rules:

Kotlin
SurveysKmp.showSurveyIfAvailable()

Show a specific survey

Kotlin
SurveysKmp.showSurvey(token = "SURVEY_TOKEN")

Check if user has responded

Kotlin
scope.launch {
    SurveysKmp.hasRespondedToSurvey("SURVEY_TOKEN").collect { hasResponded ->
        if (!hasResponded) SurveysKmp.showSurvey("SURVEY_TOKEN")
    }
}

Get available surveys

Last updated