Skip to content

Latest commit

 

History

History
34 lines (32 loc) · 996 Bytes

File metadata and controls

34 lines (32 loc) · 996 Bytes

Firebase Notification Inbox System

Overview

This is a Flutter application that uses Firebase to receive, store, and display user-specific notifications in real time.

Features

  • 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

How It Works

  • 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

Data Structure

notifications: { user_: { : { "title": "Notification Title", "body": "Notification body", "receivedAt": 1712345678 } } }

Technologies Used

  • Flutter
  • Firebase
  • Firebase Cloud Messaging
  • Firebase Realtime Database