Skip to content

Commit

Permalink
[flutter_local_notifications] bump version and add notes around using…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
MaikuB authored Mar 21, 2020
1 parent f46755e commit ce03b6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions flutter_local_notifications/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 3 additions & 1 deletion flutter_local_notifications/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion flutter_local_notifications/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit ce03b6e

Please sign in to comment.