- Initial release
- README fixes
- Fix changelog
- Updated README
- [iOS] Updates to code to support both legacy notifications via UILocalNotification (before iOS 10) and the User Notifications framework introduced in iOS 10
- [iOS] Add ability to customise the presentation options when a notification is triggered while the app is in the foreground for notifications presented using the User Notifications Framework (iOS 10+). IMPORTANT: the named parameters for iOS initialisation settings constructor have had to change to differentiate between permission options and presentation options
- [Android] Fix notifications so that tapping on them will remove them and will also start the app if it has been terminated.
- [Android] Enable ability to customise sound and vibration for notifications.
- [iOS] Enable ability to customise the sound for notifications (IMPORTANT requires testing on older iOS versions < 10)
- [iOS] Can now specify default presentation options (BREAKING CHANGE named parameters for iOS initialisation have changed) that can also be overridden at the notification level).
- [iOS] Fixes for reading in specified options
- [Android] Add support for big text style for and being able format the big text style specific content using HTML markup.
- [Android] Add ability to use HTML markup to format the title and content of notifications
- [Android] Bug fix in calculating when to show a scheduled notification. Ensure scheduled Android notifications will remain scheduled even after rebooting.
- Fix broken example app for iOS due to incorrect reference to custom sound file. Added ability to handle when a notification is tapped. See updated example for details on how to do this and will navigate to another page. Note that the second page isn't rendering full-screen on Android if the notification was tapped on while the app was in the foreground. Suspect that this is Flutter rendering issue and have logged this on the Flutter repository at https://github.com/flutter/flutter/issues/16636
- [Android] Add inbox notification style
- BREAKING CHANGES There are no functional changes. This is an API cleanup release where I've reorganised the Dart classes to better separate them by platform. What this means is that the import statements in your coode will need to be fixed. Apologies to anyone using the plugin but I feel that this was necessary as Flutter may target additional platforms in the future. Hopefully you'll agree that the end result looks a better :)
- BREAKING CHANGES Apologies again, this is another cleanup release. FlutterLocalNotifications class has been renamed to FlutterLocalNotificationsPlugin now as it makes more sense from a readability perspective. More importantly, the class and methods are also no longer static to faciliate mocking and testing. It's something I should've picked up on earlier so sorry once again. Check the source code for an example on how to mock the plugin when testing
- [Android] Add ability to show grouped notifications. Example code has been updated to demonstrate this functionality.
- Fixed the example project so it works with the new release of Cocoapods (1.5.0)
- Fixes for when API methods were called without specifying platform specific settings
- [Android] Bug fix for grouping notifications
- [Android/iOS] Add ability to cancel/remove all notifications
- [Android] Add ability to specify if notifications should automatically be dismissed upon touching them
- [Android] Add ability to specify in notifications are ongoing
- [Android] Fix bug in cancelling all notifications
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: noti_ahihi: ^0.2.1
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:noti_ahihi/flutter_local_notifications.dart'; import 'package:noti_ahihi/initialization_settings.dart'; import 'package:noti_ahihi/notification_details.dart'; import 'package:noti_ahihi/platform_specifics/android/initialization_settings_android.dart'; import 'package:noti_ahihi/platform_specifics/android/notification_details_android.dart'; import 'package:noti_ahihi/platform_specifics/ios/initialization_settings_ios.dart'; import 'package:noti_ahihi/platform_specifics/ios/notification_details_ios.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Oct 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.5.1
- pana: 0.12.21
- Flutter: 1.9.1+hotfix.4
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
flutter format to format
The package description is too short. (-20 points)
Add more detail to the
description field of
pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
noti_ahihi.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.