Files
GSFV2/gsf/ios/Runner/AppDelegate.swift
2024-04-10 12:51:20 +05:30

27 lines
1.0 KiB
Swift

import UIKit
import Flutter
//import OneSignal
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
// OneSignal.setLogLevel(.LL_VERBOSE, visualLevel: .LL_NONE)
// OneSignal initialization
// OneSignal.initWithLaunchOptions(launchOptions)
// OneSignal.setAppId("f5869a6b-cf12-422d-91e3-286f9c0e1a62")
// promptForPushNotifications will show the native iOS notification permission prompt.
// We recommend removing the following code and instead using an In-App Message to prompt for notification permission (See step 8)
// OneSignal.promptForPushNotifications(userResponse: { accepted in
// print("User accepted notifications: \(accepted)")
// })
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}