flutter_local_notifications
23.0.3, released 2 days ago by dexterx.dev
Cross-platform plugin for displaying and scheduling local notifications.
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.
50Compare
Works with
Packages commonly used together with flutter_local_notifications: ones it builds on, ones built on it, and its own family.
- clockflutter_local_notifications depends on itA fakeable wrapper for dart:core clock APIs.
- timezoneflutter_local_notifications depends on itTime zone databases and time zone aware DateTime class in Dart.
- flutter_local_notifications_platform_interfaceflutter_local_notifications depends on itA common platform interface for the flutter_local_notifications plugin.
- flutter_local_notifications_linuxflutter_local_notifications depends on itLinux implementation of the flutter_local_notifications plugin.
- appwriteBuilt on flutter_local_notificationsFlutter SDK for the self-hosted Appwrite backend server
- nylo_supportBuilt on flutter_local_notificationsSupport library for the Nylo framework offering routing, networking, storage, widgets and more.
- nylo_frameworkBuilt on flutter_local_notificationsMicro-framework for Flutter with boilerplate, routing, MVC pattern, and CLI tooling.
- fcm_configBuilt on flutter_local_notificationsMerges firebase_messaging and flutter_local_notifications for handling FCM notifications.