awesome_notifications 1.0.0-dev.6
awesome_notifications: ^1.0.0-dev.6 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.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.
