Skip to main content

Initialization

First, import the following frameworks to your AppDelegate file.
import WaveFoundation
import WaveUI
And then, add the following code inside didFinishLaunchingWithOptions’s AppDelegate
Wave.shared.setup(apiKey: "your_api_key")
The code above is used to initialize the WaveSDK, you must pass the api_keyprovided by Wave.

SVA

You can start the SVA profile by adding the following code:
import WaveSVA

let sva = Wave.shared
    .addMetadata(_metada: ["": ""])
    .start(.profile)
The .addMetadata() is a function used to identify each customer and will be send as a queryString The start method will return a UINavigationController, so you can present from anywhere. Also, in the start parameter, you can choose the route you want: profile, offerDetail or offerList