diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 63a393d71..e34456e00 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,29 +1,26 @@ --- name: Bug report -about: Create a report to help us improve +about: Create a report about bug that you've come across title: '' labels: '' assignees: '' --- -**IMPORTANT** -If you are getting a build error on Android that mentions AndroidX incompatibilities, before reporting an issue, please make sure look at the error information carefully as there should be a URL that provides information on migrating your application to AndroidX. - -Also note that the plugin has an example application that should cover all of the available functionality. Please check the example application and see if the functionality works before logging an issue. You'll need to clone the repository to run it + **Describe the bug** -A clear and concise description of what the bug is. + **To Reproduce** -If applicable, steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** -If applicable, clear and concise description of what you expected to happen. + **Sample code to reproduce the problem** -Ideally, include a link to a repository that contains code that can reproduce the problem. Suggestion is to fork this repository to modify the example app. Note that without a sample, it'll be may be more difficult to reproduce the problem and/or investigate further + diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index d2ec956c7..02b2dbfb0 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,11 +1,12 @@ # [1.5.0-beta.5] * [Android] Fix initialisation of ThreeTen Android Backport library when notifications are being rescheduled +* Removed `e2e` dependency from merging in changes from 1.4.4+2 release # [1.5.0-beta.4] * [Android] Fix issue where the ThreeTen Android Backport library wasn't initialised -* Bump e2e dev dependency +* Bump `e2e` dev dependency # [1.5.0-beta.3] @@ -44,6 +45,10 @@ * Bumped Android dependencies * Updated example app's Proguard rules file to match latest configuration required by GSON * Bumped lower bound of Dart SDK dependency to 2.6 +# [1.4.4+2] + +* [Android] Updated readme and plugin to fix issue [689](https://github.com/MaikuB/flutter_local_notifications/issues/689) where plugin needs to ensure notifications stay scheduled after an application update +* Removed `e2e` dependency # [1.4.4+1] diff --git a/flutter_local_notifications/README.md b/flutter_local_notifications/README.md index 7a1dcdcd7..a015b55d9 100644 --- a/flutter_local_notifications/README.md +++ b/flutter_local_notifications/README.md @@ -108,12 +108,13 @@ If your application needs the ability to schedule notifications then you need to ``` -The following is also needed to ensure scheduled notifications remain scheduled upon a reboot (this is handled by the plugin) +The following is also needed to ensure notifications remain scheduled upon a reboot and after an application is updated ```xml - + + ``` diff --git a/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/ScheduledNotificationBootReceiver.java b/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/ScheduledNotificationBootReceiver.java index 58918f7b7..925116172 100644 --- a/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/ScheduledNotificationBootReceiver.java +++ b/flutter_local_notifications/android/src/main/java/com/dexterous/flutterlocalnotifications/ScheduledNotificationBootReceiver.java @@ -9,8 +9,11 @@ public class ScheduledNotificationBootReceiver extends BroadcastReceiver @Override public void onReceive(final Context context, Intent intent) { String action = intent.getAction(); - if (action != null && action.equals(android.content.Intent.ACTION_BOOT_COMPLETED)) { - FlutterLocalNotificationsPlugin.rescheduleNotifications(context); + if (action != null) { + if (action.equals(android.content.Intent.ACTION_BOOT_COMPLETED) + || action.equals(Intent.ACTION_MY_PACKAGE_REPLACED)) { + FlutterLocalNotificationsPlugin.rescheduleNotifications(context); + } } } } diff --git a/flutter_local_notifications/example/android/app/src/main/AndroidManifest.xml b/flutter_local_notifications/example/android/app/src/main/AndroidManifest.xml index d3540737d..482abd0fa 100644 --- a/flutter_local_notifications/example/android/app/src/main/AndroidManifest.xml +++ b/flutter_local_notifications/example/android/app/src/main/AndroidManifest.xml @@ -34,7 +34,8 @@ - + +