Prerequisites
Do iOS Get Started all the way until finishing step 3
Step Summary
Add The initialization code.
Create the Channel between web and native with
configureWebView()
methodUse
loadUrlWithConsentDataOrWait
to load your urls into the webviewTest everything is working
Change everything to production cod
Your app is now prepared for monetization with us.
Remember that you should be using our CMP also in web so consent data can be understood.
If you are placing all or some ads natively, meaning that the actions on the web view trigger native code through some kind of javascript interface, then we recommend using Manual Implementation or if you are displaying some ads inside the webview and others in the native app you can use this implementation and the manual together to make this happen.
Initialize the SDK
We require the SDK to be initialized only once as early as possible so for this purpose using Android’s application class is recommended but if your app only has one activity, if using the activity make sure it is never destroyed unless killing the app or placing it in the background, matching then the lifecycle of Application, you can initialize it in onCreate method of that Activity.