Initialization

In order to get started and initialize the In-App Messaging SDK, instantiate a copy of the Messaging class:

  1. Create the local variable called consumerProperties
let consumerProperties = MessagingConsumerProperties(applicationID: applicationID, providerID: providerID, baseDomain: baseDomain)

This parameter holds the information needed to communicate with the server. It is then passed as a parameter when instantiating the Messaging object.

  1. Instantiate a copy of the Messaging class optionally passing the MessagingDelegate:
if let messaging = Messaging(consumerProperties: consumerProperties, delegate: self) {

…

}