Deploying in a native iOS app

Deploying in a native iOS app

Written by Grace Williamson
Last update: Friday, Dec 20, 2024

In this post, you'll find out how to implement Slaask on iOS, thanks to these simple steps:

Add this library to your iOS project.

  1. Slaask iOS SDK is available through%{polaria-begin} CocoaPods. %{polaria-end} CocoaPods. To install it, simply add the following line to your Podfile:%{polaria-begin} pod 'Polaria'%{polaria-end} pod 'Slaask' and run pod install.

  2. Add the following code to the project

  • AppDelegate’s method didFinishLaunchingWithOptions:

 
    Slaask.sharedInstance.prepare(apiKey: "YOUR_PUBLIC_KEY")

  • ViewController’s method viewDidLoad:

 
    Slaask.sharedInstance.show()
    


To run the example project, clone the repo, and run pod install from the Example directory first.


Check if everything is working as it should.

Once you’ve added your app code (including the Slaask snippet):

  1. Go to a View of your app where the show() method is called. The Slaask chatbox should appear.

  2. Type something (such as: “Hey! Do you read me?”).

  3. Send your message ! rocket


iOS SDK

4 articles in this category.
Written by Grace Williamson.