Skip to content

Flutter Push Notifications (Android & Web) – Firebase FCM for foreground, background, and closed app alerts. Supports sleep/lock mode. Includes Python & Node.js backend APIs for sending messages.

License

Notifications You must be signed in to change notification settings

helloharendra/Push-Notification-Flutter-Front-end

Repository files navigation

🔔 Push Notification in Flutter (Web & Android)

A highly reliable Flutter implementation for push notifications on Android and Web, supporting:
✔️ Foreground messages
✔️ Background messages
✔️ Sleep mode / Locked device
✔️ Closed app (Android)

Built with Firebase Cloud Messaging (FCM) for seamless cross-platform notifications.


🌟 Features

Multi-Platform Support: Works on Android and Web
Foreground Notifications: Show alerts when the app is open
Background Notifications: Handle messages when the app is in the background
Device Sleep/Lock Mode: Notifications still arrive even when the device is locked
Closed App Handling (Android): Notifications work even if the app is terminated
Easy Integration: Simple setup with Firebase & Flutter


📸 Screenrecording

push.notification.flutter.mp4

🚀 Quick Setup

1️⃣ Clone the Repository

git clone https://github.com/helloharendra/Push-Notification-Flutter.git
cd Push-Notification-Flutter
flutter pub get

2️⃣ Firebase Configuration

  • Set up Firebase Project (Android Guide | Web Guide)
  • Download google-services.json (Android) & configure Firebase for Web

3️⃣ Run the App

flutter run -d chrome  # For Web
flutter run -d android # For Android

🔗 Backend Integration

To send notifications, use one of these backend APIs:

Python API (FastAPI)

🔗 Push-Notification-API-Python

Node.js API (Express)

🔗 Push-Notification-API-Node.js

Both backends support:
📌 Sending to single/multiple devices
📌 Topic-based subscriptions
📌 Custom notification payloads


💼 Hire Me & Support My Work

🤝 Available for Projects

I'm open to Flutter development, API integrations, and consulting work.

📱 Phone/WhatsApp: +91 7991327022
📧 Email: harendraprajapati72@gmail.com
🌐 Website: nayaproyog.com
💻 Portfolio: github.helloharendra.io

☕ Buy Me a Coffee

If you appreciate my work, consider supporting me:

Buy Me A Coffee


⭐ Support & Contributions

If you find this project useful, give it a ⭐ on GitHub!
Contributions & feedback are welcome! 🚀

About

Flutter Push Notifications (Android & Web) – Firebase FCM for foreground, background, and closed app alerts. Supports sleep/lock mode. Includes Python & Node.js backend APIs for sending messages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published