Skip to main content

Configure your SDK

There are many configuration parameters on Diyalog. You can see the detailed information about the parameters.
Settings with asteriks* are required configuration to run the sdk.

* Server EndPoint#

Your Diyalog server address that app will communicate

DiyalogEngine.diyalogInstance().setEndpoints(new String[]{"wss://<YOUR_DIYALOG_SERVER_ENDPOINT_ADDRESS>"});

* API App Id and API App Key#

They are used for authenticating application on server.


Trusted Keys#

These are the trusted public keys created on your Diyalog Server. These will use in creation session keys between clients and server.

String[] trustedKeys = new String[]{

App Name#

Your application name. This will be used in some screens in Diyalog SDK. If it is not set. "Diyalog" name will appear some screen instead of your app name.


Application language#

You can change sdk language whenever by setting this.

DiyalogEngine.diyalogInstance().setApplicationLanguage(getApplicationContext(), DiyalogEngine.Languages.TURKISH);
public class Languages {
public static final String ENGLISH = "en_US";
public static final String TURKISH = "tr_TR";

App notification icon#

If you enable notification of the DiyalogSDK, you can add your app notification icon image.


App Logo#

If you set your application logo, this logo will show in toolbar in main controller of sdk. If not set it, appName that you set will be shown on tool bar. If not any appName set, "Diyalog" text will be show on toolbar.


Push Id#

If you enable notification. You should set Google or Huawei project id here.


Call enabled#

This flag will enabled voice and video calls. Default is false.


Back button enabled#

This flag will enabled back button on DiyalogSDK and user can return to your app after use Diyalog. Default is false.


Group chat#

This flag will enabled group chat messaging in app. Default is true.


Supported file type to share#

You can set file types that user can share.

DiyalogEngine.diyalogInstance().setSupportedMimeType(new String[]{MimeType.IMAGE,MimeType.TEXT,MimeType.AUDIO

Defaults are

private String[] supportedMimeType = new String[]{MimeType.TEXT,MimeType.IMAGE,MimeType.VIDEO

Google API key#

This is require to show google location image for sharing location.