Learn how to integrate the ASAPP Android SDK into your application.
App ID | Also known as the “Company Marker”, assigned by ASAPP. |
API Host Name | The fully-qualified domain name used by the SDK to communicate with ASAPP’s API. Provided by ASAPP and subject to change based on the stage of implementation. |
Region Code | The ISO 3166-1 alpha-2 code for the region of the implementation, provided by ASAPP. |
Supported Languages | Your app’s supported languages, in order of preference, as an array of language tag strings. Strings can be in the format “{ISO 639-1 Code}-{ISO 3166-1 Code}” or “{ISO 639-1 Code}”, such as “en-us” or “en”. Defaults to [“en”]. |
Client Secret | This can be an empty or random string* until otherwise notified by ASAPP. |
User Identifier | A username or similar value used to identify and authenticate the customer, provided by the Customer Company. |
Authentication Token | A password-equivalent value, which may or may not expire, used to authenticate the customer that is provided by the Customer Company. |
build.gradle
file of your project:
implementation 'com.asapp.chatsdk:chat-sdk:<version>'
Please check the latest Chat SDK version in the repository or release notes.
At this point, sync and rebuild your project to make sure all dependencies are imported successfully. You can also validate the authenticity of the downloaded dependency by following these steps.
gpg --list-keys
.
Download the ASC file directly from our repository. Finally, you can verify the Chat SDK AAR and associated ASC files like so:
Application
instance.
Refer to the aforementioned required information. ASAPP recommends you initialize the SDK in your Application.onCreate
.
openChat(context: Context)
function which will start a new Activity: