[ad_1]
I am attempting to setup iOS notifications in flutter challenge with firebase. I’ve
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func software(
_ software: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
if #out there(iOS 10.0, *) {
UNUserNotificationCenter.present().delegate = self as? UNUserNotificationCenterDelegate
}
GeneratedPluginRegistrant.register(with: self)
this in AppDelegate file, however nonetheless I do not obtain callback to onMessageOpenedApp / getInitialMessage in iOS when notification is tapped. This works tremendous in Android.
I am seeing this in logs, may this trigger a difficulty?
Warning: UNUserNotificationCenter delegate obtained name to -userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: however the completion handler was by no means referred to as.
[ad_2]
