Skip to main content

awesome_notifications 1.0.0-dev.7 copy "awesome_notifications: ^1.0.0-dev.7" to clipboard
awesome_notifications: ^1.0.0-dev.7 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.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, decrementGlobalBadgeCounter and resetGlobalBadge, the automatic increment of the channels with channelShowBadge and the badge of the notification. On Windows and Linux the counter is kept, but the app icon doesn't show it yet.
  • removeChannel, checkPermissionList, shouldShowRationaleToRequest, getAppLifeCycle and getDrawableData.
  • showNotificationConfigPage, showAlarmPage and showGlobalDndOverridePage open the settings pages (not on Windows and Linux yet).
  • displayOnForeground and displayOnBackground are 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 createNotification answers 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) and NotificationAndroidCrontab.

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, isNotificationAllowed and 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.
  • 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 reaches dart:io.
  • No analyzer warnings with the current Flutter: the deprecated material / cupertino imports and Color.value were 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 setListeners is called. getInitialNotificationAction(removeFromActionEvents: true) keeps the launch action out of them.
    • iOS: the App Group 0.12.1 used (AwnAppGroupName, or the generated group.awn.…, printed on initialize) shares the channels and the events with the Notification Service Extension.
    • dismissedLifeCycle is 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).
  • isNotificationActiveOnStatusBar and getAllActiveNotificationIdsOnStatusBar work 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.xml or res_ 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.
3.44k
likes
160
points
82.2k
downloads
screenshot

Documentation

API reference

Publisher

verified publishercarda.me

Weekly Downloads

A complete solution to create Local and Push Notifications, customizing buttons, images, sounds, emoticons and applying many different layouts for Flutter apps.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, intl, plugin_platform_interface, web

More

Packages that depend on awesome_notifications

Packages that implement awesome_notifications