Mobile App
Notifications

Notifications

Local Notifications

  1. Dependencies:

    • Ensure flutter_local_notifications package is added to your pubspec.yaml.
  2. 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.

Push Notifications

  1. Firebase Console:

    • Enable Firebase Cloud Messaging in your Firebase project.
  2. Project Configuration:

    • Follow the setup instructions for FCM in the Firebase documentation.
  3. Code Integration:

    • Push notifications are handled in lib/services/notification_service.dart.
    • Use NotificationService().sendPushNotification(title, body, deviceTokens) to send push notifications.