
ChatClientĬhatClient is used for performing chat thread operations, listed below.

To learn more, read about chat concepts here. Using the APIs, users can also send typing indicators when typing a message and read receipts for the messages they have read in a chat thread. Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. Each user in the thread is called a thread participant. Chat ThreadĪ chat conversation is represented by a chat thread. The initiator of the create request must be in the list of participants of the chat thread.

The id for the user created above will be necessary later to add said user as a participant of a new chat thread. Refer here to learn how to create a user and issue a User Access Token. User access tokens enable you to build client applications that directly authenticate to Azure Communication Services. end Key concepts User and User Access Tokens ToĮnsure compatibility when using multiple client libraries in the same project, use the same version specifier for allĪzure SDK client libraries within the project: platform :ios, '13.0' # Comment the next line if you don't want to use dynamic frameworks use_frameworks! target 'MyTarget' do pod 'AzureCommunicationChat', '1.3.0-beta.1'. Podfile, providing the version specifier you wish to use. To integrate one or more client libraries into your project using CocoaPods, specify them in your The following command: $ gem install cocoapods Next, for each target that needs to use the library, add it to the target’s array of dependencies: targets : ) ] ) Integrate the client libraries with CocoaPodsĬocoaPods is a dependency manager for Objective C and Swift projects. Specifying the clone URL of this repository and the version specifier you wish to use: // swift-tools-version:5.3 dependencies : , Open your project’s Package.swift file and add a new package dependency to your project’s dependencies section, To add the library to your application, follow the example in Finally, place a checkmark next to the library, ensure your application target is selected in the Add to target For the version rule, specify the exact version or version range you wish to use with your application andĬlick Next. With your project open in Xcode 11 or later, select File > Swift Packages > Add Package Dependency… Enter theĬlone URL of the Swift Package Manager mirror repository: Īnd click Next. Your Swift Package Manager-based app should target these repositories instead of the azure-sdk-for-ios repo. In order to independently version packages with Swift Package Manager, we mirror the code from azure-sdk-for-ios into separate To add the library to your application, follow the instructions in If you are developing on M1 please run Xcode with Rosetta. Important: AzureCommunicationChat currently does not support arm64 for iOS Simulator. Use Xcode to manage the versions of package dependencies and make sure your project has the

Xcode comes with built-in support for Swift Package Manager and source control accounts and makes it easy to leverageĪvailable Swift packages. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. The Swift Package Manager is a tool for managing the distribution of Swift code. Add a package dependency with Swift Package Manager To install the Azure client libraries for iOS, we recommend you useĪs an alternative, you may also integrate the libraries usingĬocoaPods.
