Added dialog to ask users to enable Notifications
This commit is contained in:
@ -53,6 +53,7 @@ class _AppState extends State<App> {
|
||||
}
|
||||
|
||||
FirebaseMessaging.onMessage.listen((message) => NotificationController.onForegroundMessageHandler(message, context));
|
||||
FirebaseMessaging.onMessageOpenedApp.listen((message) => NotificationController.onForegroundMessageHandler(message, context));
|
||||
FirebaseMessaging.onBackgroundMessage(NotificationController.onBackgroundMessageHandler);
|
||||
|
||||
super.initState();
|
||||
|
Reference in New Issue
Block a user