A Simple Project Implementing Flutter Notifications
This Method Uses Following Method to Send FCM Token
In This Example I Am Getting Route Argument From The FCM Notification, Based On Which I Am Changing Screen In The Application
- main.dart
- Initializes Firebase App
- Initializes Firebase Messaging Background Notifications Handler
- Initializes Firebase Messaging Foreground Notifications Handler
- Initializes FlutterLocalNotificationsPlugin
- splash.dart
- Handles Killed State Notifications
- Requests For Notifications Permission
- notification_service.dart
- Provides Functions To Handel Notifications
- Make Sure To Remove Print Statements From Production Code
- Connect Project With Firebase Using FlutterFire