From c21506bcae63f84813aa01e09330006cd4d138d2 Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Mon, 22 Feb 2021 19:55:01 +1100 Subject: [PATCH] [flutter_local_notifications] fix note in readme around onSelectNotification changes in 4.0 (#1048) * fix note in readme around onSelectNotification changes in 4.0 * switch to dev channel to build macos example --- .cirrus.yml | 2 +- flutter_local_notifications/CHANGELOG.md | 4 ++++ flutter_local_notifications/README.md | 2 +- flutter_local_notifications/pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3ab328339..a4d9dfcee 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -25,7 +25,7 @@ task: pub_cache: folder: ~/.pub-cache upgrade_script: - - flutter channel master + - flutter channel dev - flutter upgrade setup_script: - flutter config --enable-macos-desktop diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index 536da4b67..9daa936e3 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,3 +1,7 @@ +# [4.0.1+1] + +* Fixed typo in readme around the note relating to version 4.0 of the plugin where `onSelectNotification` will not be triggered when an app is launched by tapping on a notification. + # [4.0.1] * [Android] added the `getNotificationChannels` method to the `AndroidFlutterLocalNotificationsPlugin` class. This can be used to a get list of all the notification channels on devices with Android 8.0 or newer. Thanks to the PR from [Shapovalova Vera](https://github.com/VAShapovalova) diff --git a/flutter_local_notifications/README.md b/flutter_local_notifications/README.md index d400aff40..bc0866ca0 100644 --- a/flutter_local_notifications/README.md +++ b/flutter_local_notifications/README.md @@ -302,7 +302,7 @@ The `IOSInitializationSettings` and `MacOSInitializationSettings` provides defau On iOS and macOS, initialisation may show a prompt to requires users to give the application permission to display notifications (note: permissions don't need to be requested on Android). Depending on when this happens, this may not be the ideal user experience for your application. If so, please refer to the next section on how to work around this. -*Note*: from version 4.0 of the plugin, calling `initialize` will now trigger the `onSelectNotification` callback when the application was started by tapping on a notification to trigger. Use the `getNotificationAppLaunchDetails` method that is available in the plugin if you need to handle a notification triggering the launch for an app e.g. change the home route of the app for deep-linking. +*Note*: from version 4.0 of the plugin, calling `initialize` will not trigger the `onSelectNotification` callback when the application was started by tapping on a notification to trigger. Use the `getNotificationAppLaunchDetails` method that is available in the plugin if you need to handle a notification triggering the launch for an app e.g. change the home route of the app for deep-linking. ### [iOS (all supported versions) and macOS 10.14+] Requesting notification permissions diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 87fcdcdb9..a389059cb 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -2,7 +2,7 @@ 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: 4.0.1 +version: 4.0.1+1 homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications dependencies: