The sample app is a native iOS application developed using both SwiftUI and UIKit frameworks. It uses the Azure Communication UI library to empower the user experience.
- An Azure account with an active subscription. Create an account for free.
- A Mac running Xcode, along with a valid developer certificate installed into your Keychain. CocoaPods must also be installed to fetch dependencies.
- A deployed Communication Services resource. Create a Communication Services resource.
- Azure Communication Services Token. See example.
- (Optional) Create Azure Communication Services Token service URL. See example.
-
After cloning the Repo in your local environment,
cd
to theAzureCommunicationUI
folder in the root of the project directory. -
Run
pod install
, this generates a.xcworkspace
file. -
(Optional) cd to the <project_folder>/AzureCommunicationUI/AzureCommunicationUIDemoApp/Sources folder.
-
(Optional) Run
touch EnvConfig.xcconfig
via the Command Line. -
(Optional) Add constants from following list to
EnvConfig.xcconfig
as the sample app's local configurations.- Shared:
acsToken
: a generated Azure Communication Services tokenacsTokenUrl
: the URL to request Azure Communication Services token (You must use https:/$()/ in the format of URL)displayName
: your preferred display name
- for Calling:
expiredAcsToken
: an expired Azure Communication Services token for UI testinggroupCallId
: this a type of UUID used to start and join a meeting for CallingteamsMeetingLink
: the URL to a Teams meeting (You must use https:/$()/ in the format of URL) for CallingroomCallId
: the generated ID to join a room call meetingroomCallRole
: the type of role used to join a room call meetingaadToken
: the AAD token for CallingparticipantMRIs
: the MRIs for remote participants to dial
- for Chat:
userId
: the ID of the local user for ChatthreadId
: the ID of chat thread for ChatendpointUrl
: the URL of where the chat endpoint should be
Note: The
EnvConfig.xcconfig
file is created strictly for developers convenience. Those configurations can be input once theAzureCommunicationUIDemoApp
is running. - Shared:
- Follow QuickStart to setup Push Notification Hub for ACS Resource or EventGrid
- For
AzureCommunicationUIDemoApp
addPush Notification
Capability - Add
AzureCommunicationUIDemoAppExtensions
into Frameworks forAzureCommunicationUIDemoApp
- Change
AzureCommunicationUIDemoApp
to profile supportingPush Notification