Comment on page
Configure AppDelegate
AppDelegate.swfit can be found in yourFlutterProject/ios/Runner/AppDelegate.swfit
AppDelegate.swfit
1
import UIKit
2
import Flutter
3
import google_mobile_ads
4
5
@UIApplicationMain
6
@objc class AppDelegate: FlutterAppDelegate {
7
override func application(
8
_ application: UIApplication,
9
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10
) -> Bool {
11
GeneratedPluginRegistrant.register(with: self)
12
let listTileFactory = SingisticNativeAdFactory()
13
FLTGoogleMobileAdsPlugin.registerNativeAdFactory(
14
self, factoryId: "adFactoryExample", nativeAdFactory: listTileFactory)
15
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
16
}
17
}