Diyalog SDK is used for enabling messaging for your application. It is a multi-platform communication Messaging SDK for mobile and web. It is easy to integrate, save development cost and delight users with a stable, secure and customization messaging.
Diyalog SDK supported with iOS 8.0 & Above
- One-to-One Chat
- Group Chat
- Send text message
- Send Media file (Audio, Video, Image)
- Send Location
- Share Contact
- Audio Call
- Configuration Steps
Step 1: Adding DiyalogEngine to your project
CocoaPods is the recommended way to add DiyalogEngine to your project.
Step 2: Need to make required changes in Capabilities of the project as below:
And also background mode
Step 3: In your Project, open AppDelegate.swift file and import DiyalogEngine framework. Add override init() method, Inside that method set below configure.
a. Import DiyalogEngine Framework:
DiyalogEngine framwork in your AppDelegate and Inherit your AppDelegate class from
b. Set Server End Point:
c. Set push ID: You need to set push ID to get push notification while application is closed.
Note : Replace YOUR_PUSH_ID with your actual Push ID key which you will get from your google console
d. Set Custom theme color:
Note: Diyalog SDK gives you many customization in the chat views. You can learn details about styling Diyalog in styling document.
e. Set Configurable following parameter :
- Set enable/disable audio call funcation
- Set Application name
- Invite URL
- Help line number
- Terms and condition text/URL
- Enable back button on Chat home screen.
Step 5: Now you have done with integration steps, Add below code for open chat screen from your application. This will first check user authentication is completed or not, First time it will ask for login screen and after authentication complete it will open chat screen. Follow below steps.