Skip to content
pubscout

flutter_local_notifications

23.0.3, released 2 days ago by dexterx.dev

Cross-platform plugin for displaying and scheduling local notifications.

Flutter FavoriteRock solid
$ flutter pub add flutter_local_notifications
Source repository

What it does

Allows Flutter applications to display, schedule, and manage local notifications across Android, iOS, macOS, Windows, Linux, and web. Provides support for custom icons, sounds, actions, and notification channels. Enables handling user taps on notifications whether the app is in the foreground, background, or terminated.

AI-written summary of version 23.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to schedule local reminders or alarms in your Flutter application.
  • You want to display notifications locally without relying on a remote push server.

Skip it when

  • You are exclusively looking for remote push notification delivery (use firebase_messaging instead).
  • You need to support outdated Android or iOS versions that fall below the minimum requirements.

Strengths

  • Supports a wide range of platforms including Android, iOS, macOS, Windows, Linux, and Web.
  • Provides extensive platform-specific customizations such as notification channels, styles, and actions.

Weaknesses

  • Platform-specific limitations exist, such as Android OEM restrictions on background execution and iOS limits on pending notifications.
  • Requires substantial native configuration on Android and iOS (Gradle setup, permissions, etc.).

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
6

Requires native setup for Android (Gradle, AndroidManifest.xml, permissions) and iOS (general setup, foreground handling), plus minimum SDK requirement bumps.

final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();

const AndroidInitializationSettings initializationSettingsAndroid = AndroidInitializationSettings('app_icon');
final InitializationSettings initializationSettings = InitializationSettings(android: initializationSettingsAndroid);

await flutterLocalNotificationsPlugin.initialize(initializationSettings);

Alternatives

Packages that do the same job and could replace flutter_local_notifications.

  • local_notifier

    If you want a lightweight local notifications solution specifically focused on desktop environments.

Works with

Packages commonly used together with flutter_local_notifications: ones it builds on, ones built on it, and its own family.