iOS Configuration
The recommended pattern is a single startup configuration call.
SwiftUI + AppDelegateAdaptor
import SwiftUI
import UIKit
import FidbekSDK
@main
struct SampleApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
var body: some Scene {
WindowGroup { ContentView() }
}
}
final class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
Fidbek.shared.configure(
token: "YOUR_TOKEN"
)
return true
}
}
This is a common production setup and works well with standard iOS lifecycle behavior.
Optional parameter
Fidbek.shared.configure(
token: "YOUR_TOKEN",
shakeToOpenEnabled: true
)
Endpoint behavior
The report endpoint is fixed internally in SDK 0.1.0:
https://api.fidbek.dev/v1/sdk/reports
UIKit projects
UIKit apps can call the same configuration from AppDelegate startup.