Get Started
Last updated
Last updated
MeetTalk Android SDK provides all of the features available in the PowerTalk SDK, with the addition of voice and video call feature. This page presents a brief overview of the SDK’s structure and abilities, then lets you go through the preliminary steps of implementing the SDK in your own app.
The first step to configure MeetTalk SDK will be the same as configuring PowerTalk SDK, if you have completed this step, you can skip to Step 2.
1. Login to TapTalk.io Dashboard, then choose Development -> Apps
2. Click New App Button, input App Name and choose Platform, and then click Create New App Button.
3. A pop-up dialog will be shown with provided App Key ID & App Key Secret
Note: Please remember to save your App Key ID & your App Key Secret because it will only be shown once and will be used in TapTalk.io initialization
To start, open your Android project and add the following repositories to your top-level build.gradle file.Project build.gradle
Please also note that the minimum SDK version to install MeetTalk SDK is 23.
Then add the following dependency to your app-level build.gradle:
You can check a more updated version release notes of the SDK here.
Note: In the app build.gradle file, make sure that your project is using supported Java 8 language features like below
In order to use MeetTalk, you must first initialize an instance by passing the APP_ID
, APP_SECRET
, APP_ICON
, APP_BASE_URL
, and IMPLEMENTATION_TYPE
assigned to your application to the init
method as a parameter. Generally, initialization is implemented in the Application class in your project.
Note: To get BASE_URL you can follow our documentation on how to get Base URL on TapTalk.io
Parameters CONTEXT: (Context) application context APP_KEY_ID: (String) application key ID APP_KEY_SECRET: (String) application key Secret APP_ICON: (int) drawable resource ID APP_NAME: (String) your application name APP_BASE_URL: (String) base API URL IMPLEMENTATION_TYPE: (enum) found in TapTalkImplentationType, more detailed information below meetTalkListener: (MeetTalkListener) an interface to detect PowerTalk and MeetTalk Android SDK's delegates and callbacks
IMPLEMENTATION_TYPE
TapTalkImplementationType consists of 3 types which are:
TapTalkImplementationTypeUI
: used for implementation with only TapUI
TapTalkImplementationTypeCore
: used for implementation with only TapCore
TapTalkImplementationTypeCombine
: used for implementation with both of TapCore and TapUI combined
Note: MeetTalk.init()
will also initialize a TapTalk instance, so If you have previously used PowerTalk in your application and initializing TapTalk instance with TapTalk.init()
, replace TapTalk.init()
with MeetTalk.init()
and put MeetTalkListener in the parameter instead of TapListener
In order to use the abilities of the Android SDK in your client app, a TapTalk instance must be initiated in each client app through user authentication with TapTalk.io server. An authenticated user account allows the instance to communicate and interact with the server. To authenticate your user with the server, follow the instructions in Authentication page.
To enable file transfer through chat messages, you need to define FileProvider in your application's AndroidManifest.xml file, under the <application>
tag.
If your project already has defined paths, make sure the following paths exist in your paths xml file:
To enable location search result preview while sending location message, a Google Places API Key is required. To obtain the API key for your application, you can check the documentation provided by Google. To initialize, insert your obtained key using the initializeGooglePlacesApiKey()
method.
Your key also needs to be defined in your application's AndroidManifest.xml file, under the <application>
tag.
Parameters GOOGLE_PLACES_API_KEY: (String) Google Places API Key
To enable some features, such as sending link preview in messages, please enable usesCleartextTraffic
in AndroidManifest.xml file.
Initiating a call in MeetTalk requires data from TAPRoomModel. which will then be used to construct a conference data for the call. To initiate a call, use the initiateNewConferenceCall
method from MeetTalk class.
You may also customize the outgoing call using the provided parameters.
Parameters ACTIVITY: (Activity) The app's current foreground activity, which will be used to launch the call screen ROOM: (TAPRoomModel) the chat room where the call will be initiated START_WITH_AUDIO_MUTED: (boolean) initial state of the participants' microphone START_WITH_VIDEO_MUTED: (boolean) initial state of the participants' front camera RECIPIENT_DISPLAY_NAME: (String) custom display name/nickname for the recipient that will be displayed during the call
When this method is called in personal chat room, the active user will start and enter the call, and send a notification to the recipient, which will then receive an incoming call. The recipient will join the voice call once the incoming call is answered.
Participants will still be able to mute/unmute their microphone/camera during the call regardless of the START_WITH_AUDIO_MUTED and START_WITH_VIDEO_MUTED parameter.
Note: Initiating a call is currently only available in personal chat rooms.
In order for the recipient's device to receive incoming call from another device, the active user is required to enable notifications from the app. MeetTalk provides a helper method to direct the user to the app's Notification Settings page to request the user to enable the app's notifications to receive calls.
Parameters CONTEXT: (Context) The app's context or current foreground activity required to open the notification settings page
Note: You can check a more complete implementation guide in the PowerTalk Android section.