aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/AppDelegate.swift
diff options
context:
space:
mode:
Diffstat (limited to 'iosApp/iosApp/AppDelegate.swift')
-rw-r--r--iosApp/iosApp/AppDelegate.swift5
1 files changed, 4 insertions, 1 deletions
diff --git a/iosApp/iosApp/AppDelegate.swift b/iosApp/iosApp/AppDelegate.swift
index ebe88df..4233910 100644
--- a/iosApp/iosApp/AppDelegate.swift
+++ b/iosApp/iosApp/AppDelegate.swift
@@ -21,7 +21,8 @@ import Firebase
import FirebaseMessaging
class AppDelegate: NSObject, UIApplicationDelegate {
- func applicationDidFinishLaunching(_ application: UIApplication) {
+ func application(_ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
Messaging.messaging().delegate = self
@@ -30,6 +31,8 @@ class AppDelegate: NSObject, UIApplicationDelegate {
UNUserNotificationCenter.current().requestAuthorization(options: authOptions) { _, _ in }
application.registerForRemoteNotifications()
+
+ return true
}
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) async -> UIBackgroundFetchResult {