DeskPro Android Messenger is a Chat/AI/Messaging product. You can embed a “widget” directly into native app, so that enables end-users to use the product. Similar implementation for iOS.
- minSDK 23
- View binding enabled
- For detailed instructions about getting Git project into your build, check here.
- Open the build.gradle file for the app module and add the following lines:
android {
...
buildFeatures {
viewBinding = true
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
dependencies {
...
implementation("com.github.deskpro:messenger-sdk-android:Tag")
}
Download latest .aar file
- Open the build.gradle file for the app module and add the following lines:
android {
...
buildFeatures {
viewBinding = true
}
}
dependencies {
...
implementation(files("libs/messenger-sdk-android-Tag.aar")
}
val messengerConfig =
MessengerConfig(appUrl: "APP_URL", appId: "APP_ID", appKey: "APP_KEY", appIcon: "APP_ICON")
Replace APP_URL
, APP_ID
, APP_KEY
and APP_ICON
with your app's URL, ID, KEY and drawable resource.
val messenger = DeskPro(applicationContext, messengerConfig)
To open a Messenger, paste this line example in the desired place:
messenger.present().show()
MessengerConfig messengerConfig =
new MessengerConfig("APP_URL", "APP_ID", "APP_KEY", "APP_ICON");
Replace APP_URL
, APP_ID
, APP_KEY
and APP_ICON
with your app's URL, ID, KEY and drawable resource. If there is no value for APP_KEY
, put null
.
DeskPro messenger = new DeskPro(getApplicationContext(), messengerConfig);
To open a Messenger, paste this line example in the desired place:
messenger.present().show();
Note: You can create multiple Messenger instances.
messenger.setUserInfo(userObject)
Note: User(name, firstName, lastName, email)
messenger.authorizeUser(jwtToken)
messenger.setPushRegistrationToken(fcmToken)
Prerequisite: The application should be connected to the notifications platform, enabled for receiving notifications and obtaining FCM tokens.
We use SemVer for versioning. For the versions available, see the tags on this repository.