** HOW TO RUN APPLICATION **
Manual Integration:
- Clone the repository ContactCenterMessagingSDK-ios.
- Go to the root folder of ContactCenterMessagingApp.
- Open the Podfile and either remove or comment out the following lines to prevent CocoaPods from automatically adding the SDK:
$sdkVersion = 'v0.0.2' pod 'ContactCenterMessagingSDK', :podspec => 'https://github.com/microsoft/ContactCenterMessagingSDK-ios/releases/download/' + $sdkVersion + '/ContactCenterMessagingSDK-ios.podspec'
- Open the terminal and navigate to the root directory of the ContactCenterMessagingApp to install the pods for the Adaptivecards dependency. Execute the following command in the terminal. command : pod install
- Manually download the xcframeworks from releases section for desired version and add into to the root folder of ContactCenterMessagingApp. https://github.com/microsoft/ContactCenterMessagingSDK-ios/releases
- Open ContactCenterMessagingApp.xcworkspace in xcode.
- Add the downloaded xcframeworks into the project. For adding XCframeworks Click on 'ContactCenterMessagingApp' -> Select 'Targets' -> Select 'General' -> Open 'Frameworks, Library and Embedded Content' -> Click on '+' icon -> Click on 'Add Other' -> Select 'Add Files' -> Select following xcframeworks a. ContactCenterMessagingSDK.xcframework b. ContactCenterMessagingWidget.xcframework c. OmnichannelChatSDK.xcframework
- Open ViewController class and add omnichannel credentials OrgID, OrgURL and WidgetId.
- Clean build and run the application.
Integration through Cocoapods:
- Clone the repository ContactCenterMessagingSDK-ios.
- Go to the root folder of ContactCenterMessagingApp.
- Open podfile and update ContactCenterMessagingSDK version.
- Open the terminal and navigate to the root directory of the ContactCenterMessagingApp to install the pods for the Adaptivecards dependency & ContactCenterMessagingSDKs. Execute the following command in the terminal. command : pod install
- Open ContactCenterMessagingApp.xcworkspace in xcode.
- Open ViewController class and add omnichannel credentials OrgID, OrgURL and WidgetId.
- Clean build and run the application.
- Paste Your Script (taken from the Chat Workstream Page) or Add the Required Information:
In your app’s landing screen, you will find input fields where you need to enter: orgId orgUrl widgetId
Alternatively, you can paste a script, which will automatically fill in these details for you.
- Click on the "Let's Chat" Button: Once you've entered the required information (or pasted the script), look for a button labeled "Let's Chat" on your screen. Tap on this button to initiate the chat. The app will connect to the specified chat system and load the widget for you.
3.Start Interacting with the Chat: After clicking the button, you will see the chat interface appear on the screen. You can now type messages, send media, or interact with the chat in real-time. The app will allow you to communicate with customer support or any automated services available.