-
Register App
It is the package name of your Application class if you are using your own application. For White label app, Bundle Id is constant. -
Register Firebase Account
To enable push notifications in your application, please register your Firebase Cloud Messaging details with us.- If you already have an existing Firebase project, please visit Firebase to add Applications.
- In case , you don’t have a Firebase account, create a new account by visiting Firebase Sign Up page and then create a project to add Android and/or IOS app.
Register by uploading the JSON file here.Not sure about How to download this JSON file from Firebase, please visit this link to learn more.Json File AddedTo update Json File click here -
Add SDK
Adding the Chat SDK to your projectGradle
To download the SDK, you will need to include the repository manually:-
Add repository.
-
Then add this to your dependencies area.
-
You also need to enable Java 8.
Android X
-
Make sure you've added the following to your gradle.properties file.
android.useAndroidX=true
Read more on eRTC documentation -
-
Add initialization Code
Now open your applications's main class and find the onCreate method. Add the following to setup the Chat SDK:try {
// set your api key here
val config = Configuration.Builder().context(this).apiKey(“edu6qgwsjxxxxxApiKey”).build()
// SDK initialize
eRTCSDK.initializeWithConfig(config)
} catch (Exception e) {
// Handle any exceptions
e.printStackTrace();
}Read more on eRTC documentation -
Run your app to test
You are ready to go !Refer eRTC documentation for more details.