In this post, you'll find out how to implement Xeno on iOS, thanks to these simple steps:
Xeno iOS SDK is available through%{polaria-begin} CocoaPods. %{polaria-end}To install it, simply add the following line to your Podfile:%{polaria-begin} pod 'Polaria'
%{polaria-end} and run pod install
.
Add the following code to the project
AppDelegate’s method didFinishLaunchingWithOptions:
Xeno.sharedInstance.prepare(apiKey: "YOUR_PUBLIC_KEY")
ViewController’s method viewDidLoad:
Xeno.sharedInstance.show()
To run the example project, clone the repo, and run pod install
from the Example
directory first.
Go to a View of your app where the show()
method is called. The Xeno chatbox should appear.
Type something (such as: “Hey! Do you read me?”).
Send your message !