Install the Service Chat SDK for iOS
-
Add the SDK frameworks to your project.
You can add the frameworks using Swift Package Manager, using CocoaPods, or by downloading and adding the frameworks manually.
To add the frameworks using Swift Package Manager, add a package dependency to your app using the following public URL: https://github.com/Salesforce-Async-Messaging/Swift-Package-ServiceChat.
To learn more about package dependencies, see Adding Package Dependencies to Your App in Apple's Developer Documentation.
Alternatively, you can add the frameworks files manually or install the frameworks using CocoaPods.
-
Add descriptions for why the app needs access to the device's camera and photo
library.
Add string values for "Privacy - Camera Usage Description" and "Privacy - Photo Library Usage Description" in your Info.plist file. To learn more about these properties, see Cocoa Keys in Apple's reference documentation.
Sample values for these keys:
1<key>NSCameraUsageDescription</key> 2<string>Used when sending an image to an agent.</string> 3<key>NSPhotoLibraryUsageDescription</key> 4<string>Used when sending an image to an agent.</string>
You're now ready to get started using the SDK!