Top
Integrate Whatfix Mobile SDK with Android
  • 11 Oct 2024
  • 2 Minuten zu lesen
  • Dunkel
    Licht
  • pdf

Integrate Whatfix Mobile SDK with Android

  • Dunkel
    Licht
  • pdf

The content is currently unavailable in German. You are viewing the default English version.
Artikel-Zusammenfassung

To create Whatfix Mobile in-app experiences on your Android apps, you need to first set up Whatfix Mobile. Add the Whatfix Mobile SDK provided for Android devices to the source code of your app and then create and publish content.

Prerequisites

  • API Key
  • The minimum API version support for Whatfix Mobile SDK is API 16. But Whatfix Mobile works only for API levels greater or equal to 21.
  • The highest tested API level is 35, which corresponds to Android OS 14.
  • An Android 5.0 or newer device or emulator with Google Play services installed.
  • Android Studio
  • Your project should be using AndroidX. For more information on updating AndroidX from the Android Support Library see, Google's AndroidX migration guide.

Integration steps for Android

Use the following steps to integrate the Whatfix Mobile SDK in your Android project:

{{snippet.mobile_integration_info}}

Step 1: Integrate Whatfix Mobile SDK

a. Add Dependencies

Add the Whatfix Mobile library's dependency to your module (app-level) Gradle file (usually app/build.gradle) as shown in the following code snippet:

your title goes here

Leap SDK is hosted at mavenCentral. Make sure to add mavenCentral in your repositories.

repositories {
    mavenCentral()
}

dependencies {
    //Leap SDK
    implementation 'is.leap.android:sdk:2.0.1'
}
your title goes here

For more information on the latest version of the Android project, see Android Changelog

b. Start the Whatfix Mobile SDK
Start the Whatfix Mobile SDK in your Application class inside the onCreate() function.

your title goes here

For more information on creating the Application class, see Create Application Class

Leap.start("<YOUR_API_KEY>");

Step 2: Enable the Creator Mode in your app

To create in-app experiences in the Whatfix Mobile Studio, you have to enable the Creator mode in your app. This is done by integrating the Whatfix Mobile Creator SDK.

a. Add dependencies

your title goes here
  • The Whatfix Mobile Creator SDK must be removed before the app goes live on the Play Store.
  • While both Whatfix Mobile Creator SDK and Whatfix Mobile SDK need to be integrated in the development and testing versions, the production version should only have the Whatfix Mobile SDK.
repositories {
    mavenCentral()
}

dependencies {
    //Leap Developer SDK
    implementation 'is.leap.android:creator-sdk:2.0.1'
}
your title goes here

For more information on the latest version of the Android project, see Android Changelog

b. Start the Whatfix Mobile Creator SDK
Start the Whatfix Mobile Creator SDK in your Application class inside the onCreate()function.

your title goes here

For more information on creating the Application class, see Create Application Class

LeapCreator.start("<YOUR_API_KEY>");

{{snippet.mobile_android_progaurd}}

After integrating the code, you can start creating your in-app experience using Whatfix Mobile.

your title goes here
  • WebView Support: If you want Whatfix Mobile to run in the Activity/Fragment which contains WebView, then see WebView Support.

  • Chrome tabs Support: Chrome tabs are not supported as it doesn't support javascript injection.

  • Help with Audio Ducking: Whatfix Mobile supports audio ducking but if you have ExoPlayer. For more information on ducking audio on that window, see Audio Ducking.

  • For more information on setting up Whatfix Mobile callbacks, see Setup Whatfix Mobile Callbacks.

  • For more information on setting up Segmentation, see Add Custom Properties for User Segments.


War dieser Artikel hilfreich?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.