Android SDK
These steps indicate how to install the Android SDK, for that you must follow the instructions explained below.
#
Installation#
Installation with Gradle- Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
- Add the dependency
Click here to show erxes-android-sdk latest version.
#
Permissions- To enable file send and receiving feature you have to add the following code to the
AndroidManifest.xml
#
Requirement- minSdkVersion is 15
- You must add the library in the app gradle:
- After, add in the defaultConfig of the app gradle:
#
Usage#
Default configuration- brandCode - generated unique code of your brand
- apiHost - erxes-widgets-api server url
- subsHost - erxes-api subscription url
- uploadUrl - erxes-api server url
#
Start Erxes SDK- Call a ErxesSdk with login form
- following example user will log-in to erxes with email without login form
- following example user will log-in to erxes with phoneNumber without login form