cometchat sample app ios
4.3.8
此參考應用程式展示了 CometChat 的 iOS UI Kit 在 iOS 框架中的整合。它為開發人員提供了在基於 iOS 的應用程式中實現即時訊息傳遞以及語音和視訊通話功能的範例。
App ID
、 Region
和Auth Key
克隆儲存庫:
git clone https://github.com/cometchat/cometchat-sample-app-ios.git
導航到專案目錄:
cd cometchat-sample-app-ios/CometChatSwift
安裝依賴項:
pod install
如果您在安裝 pod 時遇到任何問題,請使用下列命令。
pod install --repo-update
在 Xcode 中,透過開啟cometchat-sample-app-ios/CometChatSwift.xcworkspace
開啟項目
在 CometChatSwift/AppConstants.swift 檔案中輸入您的 CometChat App ID
、 Region
和Auth Key
:
cometchat-sample-app-ios/CometChatSwift/AppConstants.swift
056b60f 中的第 9 至 13 行
如果您的應用程式是在 2024 年 8 月 12 日之前建立的,則將 CometChatSwift/Controllers/Login.swift 檔案中的範例資料 URL 變更為https://assets.cometchat.io/sampleapp/v1/sampledata.json
:
cometcha-sample-app-ios/CometChatSwift/Controllers/Login.swift
056b60f 中的第 109 至 111 行
在設備或模擬器上運行應用程式。
對於運行專案或與我們的 UI 套件整合的問題,請查閱我們的文件或建立支援票證或透過 CometChat 儀表板尋求即時支援。