https://github.com/deskpro/messenger-sdk-android
Android SDK for Deskpro Messenger (alpha)
https://github.com/deskpro/messenger-sdk-android
pre-release product sdk
Last synced: 4 months ago
JSON representation
Android SDK for Deskpro Messenger (alpha)
- Host: GitHub
- URL: https://github.com/deskpro/messenger-sdk-android
- Owner: deskpro
- Created: 2023-12-08T15:25:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-10T10:15:59.000Z (5 months ago)
- Last Synced: 2026-02-10T15:48:38.626Z (5 months ago)
- Topics: pre-release, product, sdk
- Language: Kotlin
- Homepage:
- Size: 296 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://jitpack.io/#deskpro/messenger-sdk-android)

# DeskPro Android Messenger

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](https://github.com/deskpro/messenger-sdk-ios).
## Requirements
- minSDK 23
- View binding enabled
## Dependency installation
- For detailed instructions about getting Git project into your build, check [here](https://jitpack.io/#deskpro/messenger-sdk-android).
- 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")
}
```
## Manual installation
[Download](https://jitpack.io/com/github/deskpro/messenger-sdk-android/0.0.7/messenger-sdk-android-0.0.7.aar) 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")
}
```
## Initialization (Kotlin)
```
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()
```
## Initialization (Java)
```
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.
### Setting user info
```
messenger.setUserInfo(userObject)
```
Note: User(name, firstName, lastName, email)
### Authorize user
```
messenger.authorizeUser(jwtToken)
```
### Push notifications
```
messenger.setPushRegistrationToken(fcmToken)
```
Prerequisite: The application should be connected to the notifications platform, enabled for receiving notifications and obtaining FCM tokens.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/deskpro/messenger-sdk-android/tags).