awesome_notifications 1.0.0-dev.9
awesome_notifications: ^1.0.0-dev.9 copied to clipboard
A complete solution to create Local and Push Notifications, customizing buttons, images, sounds, emoticons and applying many different layouts for Flutter apps.
1.0.0-dev.9 #
- Android: upgrading the package without
flutter cleancould leave classes out of the app, in debug and in release (a missing class at run time, or an app that doesn't compile), because of Kotlin's incremental compilation. Each package now compiles again when its version changes. An app that is already missing classes is fixed by upgrading to this version, or byflutter clean.
1.0.0-dev.8 #
- Web: add-ons can rewrite a notification before it's shown, which is how
awesome_notifications_localizationstranslates it.
1.0.0-dev.7 #
- The display rules (
displayOnForeground/displayOnBackground) and the displayed events were checked against 0.12.1 in every app lifecycle:- Android: an app whose activity was finished is in Background, not Terminated.
- iOS and macOS: the displayed events of the notifications shown without the app are delivered when it comes back.
- macOS: a notification that isn't displayed doesn't stay in Notification Center.
- Linux: scheduled notifications follow the rules too.
- iOS: every change of the badge counts. Reading it right after writing it, or incrementing it in a row, could use the old value.
- iOS: the core ships its privacy manifest (required reason APIs), also in the app's extensions.
- The Android foreground service is in its own package,
awesome_notifications_foreground_service. - README: the migration guides of the versions before 0.12.1 were removed.
1.0.0-dev.6 #
Core APIs of 0.12.1 that were missing from the previous 1.0.0 development versions:
- Badge:
getGlobalBadgeCounter,setGlobalBadgeCounter,incrementGlobalBadgeCounter,decrementGlobalBadgeCounterandresetGlobalBadge, the automatic increment of the channels withchannelShowBadgeand thebadgeof the notification. On Windows and Linux the counter is kept, but the app icon doesn't show it yet. removeChannel,checkPermissionList,shouldShowRationaleToRequest,getAppLifeCycleandgetDrawableData.showNotificationConfigPage,showAlarmPageandshowGlobalDndOverridePageopen the settings pages (not on Windows and Linux yet).displayOnForegroundanddisplayOnBackgroundare respected.- Invalid notifications are refused with the 0.12.1 errors: a channel that doesn't exist or is disabled, invalid ids, buttons without a key or label.
- Android: the channels are kept on the device and loaded again when the app starts.
- Web: a scheduled notification was shown immediately; now
createNotificationanswers false, as schedules aren't supported there. - The example shows the badge, layouts, action types, display rules, permissions, channels and app state.
- Known issue on Linux with Flutter 3.50.1: an invalid request to an add-on (a schedule with an invalid interval, for example) closes the app instead of answering the error, as in the previous development versions. The core's own errors are answered.
- Not available yet:
AndroidForegroundService(it'll be a separate package) andNotificationAndroidCrontab.
1.0.0-dev.5 #
- Web: the core shows the browser's notifications while the app is open in a tab (JavaScript and WebAssembly):
- the permission prompt,
isNotificationAllowedand the permission statuses (Alert and Sound; the rest is notSupported, as on desktop); - title and body, the large icon, the big picture (also the large icon when there's none), the progress bar written into the body, silent channels, locked notifications kept on screen;
- the four events with the whole content: a tap on the body opens the app, closing it is a dismissal;
- dismiss / cancel by id, channel, group and all, the status bar list, and the badge.
- the permission prompt,
- Web: action buttons and taps with the tab closed are planned next (service worker).
- The example runs in the browser.
1.0.0-dev.4 #
- The pub.dev screenshot is square, so the search thumbnail shows it whole.
1.0.0-dev.3 #
- Windows: apps using the plugin build again (MSVC C4275 stopped the build, as Flutter compiles plugins with warnings as errors).
- pub.dev shows a screenshot of the final notification on iOS and on Android.
- Web: compatible with WebAssembly (
flutter build web --wasm). The web build no longer reachesdart:io. - No analyzer warnings with the current Flutter: the deprecated
material/cupertinoimports andColor.valuewere replaced, with the same values. - The example runs on the Web.
- Every add-on README lists the whole package family, after its key features.
1.0.0-dev.2 #
- The four notification events (created, displayed, action, dismissed) reach the app with the full payload in every app state, as in 0.12.1:
- Events emitted before the app sets its listeners (a launch tap, a push shown with the app killed) are kept and delivered in order once
setListenersis called.getInitialNotificationAction(removeFromActionEvents: true)keeps the launch action out of them. - iOS: the App Group 0.12.1 used (
AwnAppGroupName, or the generatedgroup.awn.…, printed oninitialize) shares the channels and the events with the Notification Service Extension. dismissedLifeCycleis filled on a dismissal (it was empty).- Android: the created / displayed lifecycles follow 0.12.1 (Terminated with no app listening, Foreground when visible, Background otherwise).
- Events emitted before the app sets its listeners (a launch tap, a push shown with the app killed) are kept and delivered in order once
isNotificationActiveOnStatusBarandgetAllActiveNotificationIdsOnStatusBarwork on Android, iOS, macOS, Windows and Linux (0.12.1 always threw).- Android: the resources loaded by name (icons, sounds, images, layouts, strings) are kept in release builds automatically: no
keep.xmlorres_prefix needed. - The README images load from a fixed commit, so they show on pub.dev.
1.0.0-dev.1 #
- Android: the shared engine (
me.carda.android_awn_core) ships inside the package, so the plugin builds from pub.dev. - iOS / macOS: the shared engine (
IosAwnCore) ships as real files in the package, so it builds with Flutter 3.50.1's copied plugins. - Built and tested with Flutter 3.50.1.
- The README images (banner and screenshots) load from a fixed commit, so they show on pub.dev.
1.0.0-dev #
- Development preview of the 1.0.0 monorepo.
