Embed Kustomer in your own products with our chat SDK for iOS.
- A Kustomer.com API Key (How to get an API key)
- Xcode 14.0+
- iOS 12.0+
Note: Starting with iOS version 2.6.0, the PubNub library is downloaded as a dependency if installing the SDK using the Swift Package Manager or Cocoapods.
- Create or open your project inside of Xcode
- Navigate to File > Swift Packages > Add Package Dependency
- Enter https://github.com/kustomer/kustomer-ios in the URL field
- Use the Up to Next Major Version rule spanning from 2.0.0 < 3.0.0, and hit the Next button
- Add
pod 'KustomerChat', :git => 'https://github.com/kustomer/kustomer-ios.git'
to your Podfile - Run
pod update
orpod install
on your project - Add the following to your Podfile, to update all Pods to the min target
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
- Add photo and camera privacy descriptions to your
Info.plist
. - In the
application(_:didFinishLaunchingWithOptions:)
method of yourAppDelegate
add
Kustomer.configure(apiKey: "API_KEY_HERE", options: nil, launchOptions: launchOptions)
- Call
Kustomer.show()
whenever and wherever you want to open the Kustomer chat interface.
See Installation for a full guide.