Embed Kustomer in your own products with our chat SDK for iOS.
- A Kustomer.com API Key (How to get an API key)
- Xcode 12.0+
- iOS 11.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
KustomerChat.xcframework
to your project'sFrameworks, Libraries, and Embedded Content
section. - Check
Embed & Sign
for both frameworks. - Add PubNub using your preferred method. You can find details in their documentation here
CALLOUT: If you add PubNub as a git submodule, you must install the PubNub version required by our podspec/package.swift.
The release page for each version contains a static version of the SDK. To install, download and unzip libKustomerChatStatic.xcframework
and KustomerAssets.bundle
, and add them to your project. You will also need to install the version of PubNub required by our podspec/package.swift. You can find details in their documentation here
- 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.
- Open
Example/Example.xcodeproj
- Set your API key in
AppDelegate.swift
- Your API key must have only the
org.tracking
role. You can get your API key from the Kustomer website.
- Your API key must have only the
- Run the app