Notifications
Local Notifications
-
Dependencies:
- Ensure
flutter_local_notifications
package is added to yourpubspec.yaml
.
- Ensure
-
Code Integration:
- Initialization and configuration are done in
lib/services/notification_service.dart
. - Use
NotificationService().sendLocalNotification()
to send local notifications. You can also schedule notifications as needed.
- Initialization and configuration are done in
Push Notifications
-
Firebase Console:
- Enable Firebase Cloud Messaging in your Firebase project.
-
Project Configuration:
- Follow the setup instructions for FCM in the Firebase documentation.
-
Code Integration:
- Push notifications are handled in
lib/services/notification_service.dart
. - Use
NotificationService().sendPushNotification(title, body, deviceTokens)
to send push notifications.
- Push notifications are handled in