-
Notifications
You must be signed in to change notification settings - Fork 4
Initialize BandyerSDK
Create a java class in you package named App.java
which must extend Application
or MultiDexApplication
Link the newly created class App.java
in the AndroidManifest.xml. See here for an example
In order to initialize the BandyerSDK correctly the following is required
- Initialize a Builder with appId and Application
- Specify an environment (sandbox or production)
- Add at least one module(call/chat) to the Builder
- Pass as a parameter the newly created builder to the init method of BandyerSDK object.
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
String appId = getString(R.string.app_id);
// `this` refers to the Application, where this code should be placed
BandyerSDK.Builder builder = new BandyerSDK.Builder(this, appId)
.setEnvironment(Environment.Configuration.sandbox())
.withCallEnabled()
.withFileSharingEnabled()
.withWhiteboardEnabled()
.withChatEnabled();
BandyerSDK.init(builder);
}
}
Logging If you want to debug an issue you can plug-in your logging system.
Customize user provider The userAliases cannot describe your users properly so if you would like to display in-chat or in-call users adequately for example name and surname, you must provide details for user alias with UserContactProvider interface.
Customize user details display The user details formatter is the interface that defines how to format a user provided. For example while in chat you may want to display the users email and while in call you may want to use the nickname.
Customize call module notifications Customize everything regarding call notifications may it be style, action or how it should be shown as notification or directly as an activity.
Customize chat module notifications Customize everything regarding chat notifications may it be style, action or how it should be shown as notification or directly as an activity.
Customize file sharing notifications Customize everything regarding file sharing notifications may it be style or action.