A Flutter package that handles push notifications efficiently using Firebase Messaging and local notifications. Supports background message handling, scheduling notifications, and offers utilities for timezone management and dependency injection.
Quickest way to add the package and enable the CLI:
flutter pub add high_q_notifications
dart pub global activate high_q_notifications
dart run high_q_notifications:setup_notificationsWhen you run the CLI tool:
dart run high_q_notifications:setup_notificationsIt performs the following actions automatically:
-
Creates essential notification-related files inside
lib/notification_service/:configs/android_config.dartconfigs/ios_config.dartutils/navigation_service.dartutils/handle_navigation.dartutils/notifications_type.dartexports.dart
-
Sets up a
main_copy.dartfile to demonstrate how to integrateHighQNotificationsinto your app. -
Ensures your project is ready to handle:
- Firebase messages
- Background taps
- Local notifications
To use custom notification sounds, you must manually add the sound files to the correct platform folders:
-
Place your
.mp3sound file inside:android/app/src/main/res/raw/ -
Example:
android/app/src/main/res/raw/notification_sound.mp3
-
Place your
.cafsound file inside:ios/Runner/Resources/ -
Example:
ios/Runner/Resources/notification_sound.caf
This package provides a command line interface (CLI) tool for setup and management.
Run the CLI command directly in your project:
dart run high_q_notifications:setup_notificationsTo activate the CLI globally on your machine:
dart pub global activate high_q_notificationsThen use the command like this:
high_q_notifications:setup_notifications| Use case | Command |
|---|---|
| Add package to Flutter app | flutter pub add high_q_notifications |
| Run CLI tool in project | dart run high_q_notifications:setup_notifications |
| Activate CLI globally | dart pub global activate high_q_notifications |