Installation
There are two ways you can install SuprSend SDK into your app:
Add the below pods to your pod file.
pod 'SuprsendCore'
pod 'SuprSendSdk'
Install pods in the project using the below command in the terminal.
Download these two zip files
Select your target project
Select your project target and move to the section Frameworks, Libraries, and Embedded Content
Click on the + button --> Add Other --> Add Files
Navigate to your project folder
After navigating to the project folder, select SuprSendSdk.xcframework
and SuprsendCore.xcframework
Initialization
Add the below lines of code in your AppDelegate.swift.
import SuprSendSdk
let suprSendConfiguration = SuprSendSDKConfiguration ( withKey: "<workspace_key>" , secret : "<workspace_secret>" )
SuprSend . shared . configureWith ( configuration: suprSendConfiguration, launchOptions : launchOptions)
Replace <workspace_key>
and <workspace_secret>
with the keys linked to your SuprSend account. You can find it on SuprSend dashboard (Developers -> API keys) section.