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.
✅ 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
push.notification.flutter.mp4
git clone https://github.com/helloharendra/Push-Notification-Flutter.git
cd Push-Notification-Flutter
flutter pub get
- Set up Firebase Project (Android Guide | Web Guide)
- Download
google-services.json
(Android) & configure Firebase for Web
flutter run -d chrome # For Web
flutter run -d android # For Android
To send notifications, use one of these backend APIs:
🔗 Push-Notification-API-Python
🔗 Push-Notification-API-Node.js
Both backends support:
📌 Sending to single/multiple devices
📌 Topic-based subscriptions
📌 Custom notification payloads
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
If you appreciate my work, consider supporting me:
If you find this project useful, give it a ⭐ on GitHub!
Contributions & feedback are welcome! 🚀