I have the app registered for Firebase notifications and I have implemented the UNUserNotificationCenterDelegate
. the didReceive
method is called when the application is running or in the background.
When I terminate the application and send a notification. The willFinishLaunchingWithOptions
and didFinishLaunchingWithOptions
methods are called but launchOptions object is nil and does not contain any .remoteNotificaiton key.
if launchOptions != nil {
logger.log("There is stuff in launch options")
}
My AppDelegate Setup
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate
@available(iOS 10, *)
extension AppDelegate: UNUserNotificationCenterDelegate
extension AppDelegate: MessagingDelegate
The above code never prints any log message to the console.
I have tried everything and google for whole but nothing concrete.
I am on iOS 14 beta 6 and Xcode beta 6.
Thanks in advance.