Adpluginx Documentation
  • 👋Welcome to AdPluginx
  • Installation
    • ⚙️Install Adpluginx
    • Configure Pod For Ios
    • Configure Info.plist
    • Configure SkAdNetworks
    • Configure AppDelegate
    • Creating Native AdView
    • Init Native View to Swift Class
    • Add Onesignal to Project
  • Ad Network Indexes
    • AdConfig
    • FullScreen Ad Indexes
    • Banner Ad Indexes
    • Native Ad Indexes
  • Apple SignIn & In App Purchase
    • Enable Apple SignIn And Use
    • Skip Logic
    • InApp Purchases
    • Coin Login
Powered by GitBook
On this page

Was this helpful?

  1. Installation

Configure AppDelegate

Replace AppDelegate.swift with below code

AppDelegate.swfit can be found in yourFlutterProject/ios/Runner/AppDelegate.swfit

AppDelegate.swfit
import UIKit
import Flutter
import google_mobile_ads

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
    GeneratedPluginRegistrant.register(with: self)
      let listTileFactory = SingisticNativeAdFactory()
          FLTGoogleMobileAdsPlugin.registerNativeAdFactory(
               self, factoryId: "adFactoryExample", nativeAdFactory: listTileFactory)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
}
PreviousConfigure SkAdNetworksNextCreating Native AdView

Last updated 2 years ago

Was this helpful?