This is a Flutter application that uses Firebase to receive, store, and display user-specific notifications in real time.
- Username-based login
- Subscription to user-specific topics
- Push notifications using Firebase Cloud Messaging
- Store notifications in Firebase Realtime Database
- Real-time inbox that updates automatically
- Logout with topic unsubscription and session clearing
- The user enters a username
- The app subscribes to a topic based on the username
- Notifications are sent to that topic
- The app receives the notification
- The notification is stored in the database
- The inbox updates in real time
notifications: { user_: { : { "title": "Notification Title", "body": "Notification body", "receivedAt": 1712345678 } } }
- Flutter
- Firebase
- Firebase Cloud Messaging
- Firebase Realtime Database