Before running through these steps, be sure you’ve checked the Requirements for the for Android for Android.
To get started with the Service SDK for Android:
-
Install the SDK using Gradle.
The Service SDK is hosted in a maven repository.
Feature Dependency Name Maven Repository URL All Features com.salesforce.service:servicesdk:Service Chat SDK
https://s3.amazonaws.com/salesforcesos.com/android/maven/release Chat com.salesforce.service:chat-ui:Service Chat SDK
(if you're only using Chat Core, then use com.salesforce.service:chat-core:Service Chat SDK)
https://s3.amazonaws.com/salesforcesos.com/android/maven/release To install all the Service SDK features, add the following maven repositories to your project's build.gradle file.
allprojects { repositories { google() mavenCentral() maven { url 'https://s3.amazonaws.com/salesforcesos.com/android/maven/release' } } }And add the following dependency to your module's build.gradle file.
dependencies { implementation 'com.salesforce.service:servicesdk:224.2.6' } -
Declare permissions.
You must declare the following permissions in your AndroidManifest.xml.
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
You can now start using the Service SDK for Android.