Add the OpenWeb Android SDK
Add the OpenWeb SDK to your Android app
To add a Conversation to your app, you must import the OpenWeb Android SDK and then configure your project.


Implementation
- From within Android Studio, open your app.
- In the project build.gradle file, add the JitPack repository:
https://jitpack.io
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
- In the app build.gradle file, add the
com.github.SpotIM.spotim-android-sdk:spotim-sdk:1.10.1
andandroidx.multidex:multidex:2.0.1
dependencies.
dependencies {
...
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.github.SpotIM.spotim-android-sdk:spotim-sdk:1.10.1'
}
- (Mandatory for Android 12 SDK) Also in the app build.gradle file, add the following to fix a crash in play-services-ads with PendingIntent without FLAG_IMMUTABLE or FLAG_MUTABLE.
implementation 'com.github.SpotIM.spotim-android-sdk:spotim-sdk:1.10.1'
constraints {
implementation('androidx.work:work-runtime:2.7.1') {
because '''androidx.work:work-runtime:2.1.0 pulled from
play-services-ads has a bug using PendingIntent without
FLAG_IMMUTABLE or FLAG_MUTABLE and will fail in Apps
targeting S+.
'''
}
}
- Also in the app build.gradle file, set
minSdkVersion
to19
or greater. If you setminSdkVersion
to19
-20
, you must also setmultiDexEnabled true
.
android {
defaultConfig {
...
minSdkVersion 19
multiDexEnabled true
}
- In the AndroidManifest.xml file, add the permission to use the Internet:
<uses-permission android:name="android.permission.INTERNET" />
.
Updated about 12 hours ago
Did this page help you?