Do iOS Get Started all the way until finishing step 3
Add the Initialization code for the SDK
Register all the app UIViewControllers
to the SDK
Add the Tagged Wrappers, Tagged Buttons using the accessabilityLabel
Note the Transitions
Add the testing Single Data
Test everything is working
Change everything to production code
Your app is now prepared for monetization with us.
We require the SDK to be initialized only once and as early as possible, |
The recommended place to initialize the SDK is the Initial UIViewController
on viewDidLoad()
class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() R89SDK.shared.setLogLevel(level: LogLevels.debug) R89SDK.shared.setDebug() R89SDK.shared.initialize(publisherId: "TestRefinery89ID", appId: "TestConfigDemoApp", singleLine: true, publisherInitializationEvents: nil) R89SDK.shared.registerLifecycle(uiViewController: self) } } } |
Then on every UIViewController
viewDidLoad()
add the following line.
class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() R89SDK.shared.registerLifecycle(uiViewController: self) } } } |
Tagged Wrappers |
Check iOS Creating a wrapper if you want to know more details on how to create a normal wrapper.