1. Enter Debug Mode
For testing manual implementation add this before initialization
Code Block |
---|
R89SDK.shared.setDebug() |
We also recommend adding
Code Block |
---|
R89SDK.shared.setLogLevel(level: LogLevels.debug) |
Full Example
Code Block |
---|
import UIKit
import R89SDK
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// This is for testing purposes, remove it on prod
R89SDK.shared.setDebug() // This is for testing purposes, remove it on prod
// This is for testing purposes, remove it on prod
R89SDK.shared.setLogLevel(level: LogLevels.debug)
// publisherId and appId are for testing purposes, remove it on prod
R89SDK.shared.initialize(
publisherId: "TestRefinery89ID",
appId: "TestDemoApp",
singleLine: false,
publisherInitializationEvents: nil
)
return true
}
} |
s