Skip to content

This is a sample application with examples of Kotlin workarounds for Qualtrics Android SDK.

Notifications You must be signed in to change notification settings

qualtrics/QualtricsSDKAndroidSampleApps

Repository files navigation

QualtricsSDK Sample Apps

In this repository you will find sample Apps with Qualtrics Android SDK.

Structure

  • Basic kotlin implementation example can be find in SampleExampleActivity.kt
  • Advanced examples are divided into technology-specific directories
    • sample-views folder contains examples for Android View approach including navigation between Activities and Fragments.
    • sample-compose folder contains examples for Jetpack Compose approach including navigation between screens using Navigation Compose
    • To avoid duplication, some common code has been extracted to sample-common directory.

How to run

  • Clone repository and open root directory in Android Studio.
  • Change Your Qualtrics Project IDs in file helpers/Constants.kt. There is a separate one for each of the apps.
  • Run one of the prepared configurations: sample-views or sample-compose

Setting up the Intercept

We suggest testing the example applications using the Intercept with Display/Targeting Logic set up to

If View Count Total Views Greater Than or Equal to 1

That way, the intercept will show with every call of registerViewVisit making it easy to test.

You can check out the Qualtrics Documentation for more information on how to set up the Display Logic

Use-cases

The examples included in this repository demonstrate the following use-cases:

  • Including the library in your gradle files
  • Initializing Project
  • Evaluating Project Display Logic
  • Evaluating Single Intercept Display Logic
  • Building a custom dialog for survey invitation
  • Hooking into navigation events to register View Visit with every screen change
  • Requesting for Notifications permission for Android 14 and above

Issues / Support

For help on the Qualtrics SDK, you will want to reach out to our support team via our Support Portal. If you do not have a login, please work with your brand admin to file a support ticket.

We do not take support requests or community PRs through GitHub.

About

This is a sample application with examples of Kotlin workarounds for Qualtrics Android SDK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages