IOS - Documentação do SDK de Monetização de Aplicativos

⌘K
  1. IOS – Monetize App ...
  2. Tipos de inicialização
  3. Inicialização do WebView

Inicialização do WebView

How it works?

Nós configuramos seu webview para criar um canal entre nosso script de cabeçalho da web e o SDK nativo, isso permite melhor conformidade de privacidade e segmentação.

Com isso em vigor, você pode usar loadUrlComDadosDeConsentimentoOuAguarde to load the URL with consent data.

What is needed?

  1. Comece criando uma conta conosco. Fale conosco para iniciar o processo e fornecer todas as informações necessárias listadas abaixo.
  2. Adicione o código de Inicialização.
  3. Siga Este Guia
  4. Seu web app está agora preparado para monetização conosco.

Informações que precisamos sobre seu aplicativo

Example in the Demo

You will use Android’s WebView View in your app, but instead of loading the url withWebView.loadUrl()you need to configure the webview with R89SDK.configureWebView() and then use R89SDK.loadUrlWithConsentDataOrWait().

Function R89SDK.configureWebView takes 3 parameters, which are:

  • webView – your webView
  • userAgent – userAgent string, which can be acquired with ->
    R89SDK.getUserAgent(webView = webview!!, siteName =”WebViewDemo”)
  • webViewClientR89WebViewClient object, child of WebViewClient, in which you can override callback functions like:
    • r89OnPageFinished – is called when page finished loading
    • r89OnPageStarted – is called when page started loading

Example:

R89SDK.configureWebView(webview!!, userAgent, object : R89WebViewClient()
{
// Here you can override WebViewClient methods in case you need them
})

If you want to add any Banner/Outstream or other formats outside of the WebView you can do so the same way it is done in Manual initialization.

if you wanted you could create your own custom JavaScriptInterface from the web part of the app to display the ads in the native part interacting and controlling them from the webpart.

 

Como podemos ajudar?