From ce03b6edb38dba41ad6b62eb2f56f763eb6de047 Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Sat, 21 Mar 2020 18:12:47 +1100 Subject: [PATCH] [flutter_local_notifications] bump version and add notes around using the plugin with firebase_messaging (#542) * [flutter_local_notifications] updated readme around using firebase_messaging with this plugin * bump version * document breaking change and bump version * update wording in changelog --- flutter_local_notifications/CHANGELOG.md | 6 ++++++ flutter_local_notifications/README.md | 4 +++- flutter_local_notifications/pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index 7726300b8..94d049009 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,3 +1,9 @@ +# [1.3.0] + +* [iOS] **BREAKING CHANGE** Plugin will now throw a `PlatformException` if there was an error returned upon calling the native [`addNotificationRequest`](https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649508-addnotificationrequest) method. Previously the error was logged on the native side the using [`NSLog`](https://developer.apple.com/documentation/foundation/1395275-nslog) function. +* [iOS] Added ability to associate notifications with attachments. Only applicable to iOS 10+ where the UserNotification APIs are used. Thanks to the PR from [Pavel Sipaylo](https://github.com/psipaylo) +* Updated readme on using `firebase_messaging` together with `flutter_local_notifications` to let the community that `firebase_messaging` 6.0.13 can be used to resolve compatibility issues around callbacks when both plugins are used together + # [1.2.2] * [Android] Added ability to specify if the timestamp for when a notification occurred should be displayed. Thanks to the PR from [mojtabaghiasi](https://github.com/mojtabaghiasi) diff --git a/flutter_local_notifications/README.md b/flutter_local_notifications/README.md index 7e4a704f2..76c01147c 100644 --- a/flutter_local_notifications/README.md +++ b/flutter_local_notifications/README.md @@ -470,7 +470,9 @@ When using custom notification sound, developers should be aware that iOS enforc https://developer.apple.com/documentation/usernotifications/unnotificationsound?language=objc -**IMPORTANT**: There is an issue that prevents this plugin working properly with the `firebase_messaging` plugin at this point in time. This is being tracked [here](https://github.com/FirebaseExtended/flutterfire/issues/1455). Please upvote if this issue is important to you for the Flutter team to prioritise. I currently have a pull request to the `firebase_messaging` plugin waiting to be reviewed on this issue. For those that want to use my fork for their apps whilst waiting for the issue to be fixed, it can be found at https://github.com/MaikuB/flutterfire. See [here](https://github.com/MaikuB/flutter_firebase_local_notifications_examples/blob/55c3208c2bf19be487c5987be3661438a76529e1/java_objc/pubspec.yaml#L22) to see how it can be referenced in your application's `pubspec.yaml` file. +### Using firebase_messaging with flutter_local_notifications + +Previously, there were issue that prevented this plugin working properly with the `firebase_messaging` plugin. This meant that callbacks from each plugin might not be invoked. Version 6.0.13 of `firebase_messaging` should resolve this issue so please bump your `firebase_messaging` dependency and follow the steps covered in `firebase_messaging`'s readme file. ## Testing diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 083c27277..28b682b0c 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_local_notifications description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. -version: 1.2.2 +version: 1.3.0 homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications dependencies: