Skip to main content

Firebase Setup

Overview

The app uses Firebase Cloud Messaging for push notifications.

Configuration

  1. Create Firebase project at console.firebase.google.com
  2. Download google-services.json (Android) and GoogleService-Info.plist (iOS)
  3. Place in appropriate directories
  4. Configure in lib/services/push_service.dart

Testing Push Notifications

Use Firebase Console to send test messages, or use the FCM API:

curl -X POST https://fcm.googleapis.com/fcm/send \
-H "Authorization: key=<server-key>" \
-H "Content-Type: application/json" \
-d '{"to": "<device-token>", "notification": {"title": "Test", "body": "Hello"}}'