From f921f8cfc8fbd879c1162ba438728c7c9bec712e Mon Sep 17 00:00:00 2001 From: Jakub Date: Fri, 10 Nov 2023 20:27:22 +0100 Subject: [PATCH] fix: added missing swift code for example project --- CHANGELOG.md | 6 ++++-- example/ios/Runner/AppDelegate.swift | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d88816d..9e9756fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # 0.4.0 -* [BREAKING_CHANGE] Updated dart min version to 3.0.0 -* Updated dependencies +* [BREAKING_CHANGE] Updated dart min version to 3.0.0. +* Updated dependencies. +* Fixed lints. +* Updated example. # 0.3.3 * Updated dependencies diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift index 71cc41e3..661646c0 100644 --- a/example/ios/Runner/AppDelegate.swift +++ b/example/ios/Runner/AppDelegate.swift @@ -8,6 +8,9 @@ import Flutter didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]? ) -> Bool { GeneratedPluginRegistrant.register(with: self) + if #available(iOS 10.0, *) { + UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate + } return super.application(application, didFinishLaunchingWithOptions: launchOptions) } }