Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageswift
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.setLogLevel(level: LogLevels.debug)
        // This is for testing purposes, remove it on prod
        R89SDK.shared.setDebug()
  
        addTestingSingleTagData()  /* This is a later step */
        
        R89SDK.shared.initialize(
            publisherIdpubUUID: "TestPublisherIDTestRefinery89UUID", /* This is for testing purposes, change it on prod */
            appIdapiKey: "TestAppIdTestRefinery89ApiKey", /* This is for testing purposes, change it on prod */
            singleLine: true,
            publisherInitializationEvents: nil)
        return true
    }
}
Info

Your publisherId pubUUID and appId apiKey will be provided to you during onboarding process by email, you can also retrieve them from the web interface after login.

Note

This appID apiKey is not the same as the Info.plist GADApplicationIdentifieryou used in previous steps.

...

  • Remove the methods R89SDK.shared.setDebug().

  • Change the GADApplicationIdentifier in the info.plist for the production one.

  • Change the appId pubUUID and publisherId apiKey in the initialization method for the production ones.

  • it’s also recommended to remove R89SDK.shared.setLogLevel(level: LogLevels.debug) but not needed.

...