moving it around as I found a bug but I was not able to reproduce so won't change...

This commit is contained in:
talksik
2021-12-25 23:04:26 -08:00
parent 2a170cdaaa
commit 2ab546097a
+6 -6
View File
@@ -72,6 +72,12 @@ class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didReceiveRemoteNotification notification: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
print("did receive remote notification")
// phone auth
if Auth.auth().canHandleNotification(notification) {
completionHandler(.noData)
return
}
// If you are receiving a notification message while your app is in the background,
// this callback will not be fired till the user taps on the notification launching the application.
// TODO: Handle data of notification
@@ -88,12 +94,6 @@ class AppDelegate: NSObject, UIApplicationDelegate {
print(notification)
completionHandler(UIBackgroundFetchResult.newData)
// phone auth
if Auth.auth().canHandleNotification(notification) {
completionHandler(.noData)
return
}
}
// For iOS 9+