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().endpoints = ["wss://<YOUR_DIYALOG_SERVER_ENDPOINT_ADDRESS>"]

* API App Id and API App Key#

They are used for authenticating application on server.

DiyalogEngine.diyalogInstance().apiId = <YOUR_APP_API_ID>
DiyalogEngine.diyalogInstance().apiKey = "<YOUR_APP_API_KEY>"

Trusted Keys#

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

DiyalogEngine.diyalogInstance().trustedKeys = [

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.


Push Id#

If you enable notification. You should set your push id that is given by server administrator.

DiyalogEngine.diyalogInstance().apiPushId = 111111

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.


Supported file type to share#

You can set file types that user can share.

DiyalogEngine.diyalogInstance().fileSupport = [.music, .picture, .doc, .spreadsheet, .video, .presentation, .pdf, .csv]