Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

UI Mobile Library Demo App

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.

Getting Started

Prerequisites

Before running the sample for the first time

  1. After cloning the Repo in your local environment, cd to the AzureCommunicationUI folder in the root of the project directory.

  2. Run pod install, this generates a .xcworkspace file.

  3. (Optional) cd to the <project_folder>/AzureCommunicationUI/AzureCommunicationUIDemoApp/Sources folder.

  4. (Optional) Run touch EnvConfig.xcconfig via the Command Line.

  5. (Optional) Add constants from following list to EnvConfig.xcconfig as the sample app's local configurations.

    • Shared:
      • acsToken: a generated Azure Communication Services token
      • acsTokenUrl: 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 testing
      • groupCallId: this a type of UUID used to start and join a meeting for Calling
      • teamsMeetingLink: the URL to a Teams meeting (You must use https:/$()/ in the format of URL) for Calling
      • aadToken: the AAD token for Calling
    • for Chat:
      • userId: the ID of the local user for Chat
      • threadId: the ID of chat thread for Chat
      • endpointUrl: the URL of where the chat endpoint should be

    EnvConfig

    Note: The EnvConfig.xcconfig file is created strictly for developers convenience. Those configurations can be input once the AzureCommunicationUIDemoApp is running.

Run Sample

  1. Open AzureCommunicationUI.xcworkspace file generated in the above step.

  2. Select AzureCommunicationUIDemoApp scheme and target at any iOS simulator.

  3. Hit Run or ⌘+R to start running.

    SelectSimulator