-
Notifications
You must be signed in to change notification settings - Fork 16
/
AppDelegate.swift
31 lines (25 loc) · 992 Bytes
/
AppDelegate.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import UIKit
import CioDataPipelines
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication
.LaunchOptionsKey: Any]? = nil
) -> Bool {
/*
You will need cdpApiKey to initialize CustomerIO
Learn more about it here: https://customer.io/docs/sdk/ios/quick-start-guide/#prerequisites
*/
// Uncomment the following line and set CDP API Key if it is more convenient than setting it in the UI
// AppState.shared.workspaceSettings.cdpApiKy = "CDP_API_KEY"
let workspaceSettings = AppState.shared.workspaceSettings
if workspaceSettings.isSet() {
CustomerIO.initialize(
withConfig:
SDKConfigBuilder(cdpApiKey: workspaceSettings.cdpApiKy)
.logLevel(.debug)
.build())
}
return true
}
}