Added home-screen app-icon Notification badge
This commit is contained in:
@ -56,11 +56,13 @@ class _AppState extends State<App> {
|
||||
NotifyUpdater.registerToServer();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
FirebaseMessaging.onMessage.listen((message) => NotificationController.onForegroundMessageHandler(message, context));
|
||||
FirebaseMessaging.onMessageOpenedApp.listen((message) => NotificationController.onForegroundMessageHandler(message, context));
|
||||
FirebaseMessaging.onBackgroundMessage(NotificationController.onBackgroundMessageHandler);
|
||||
|
||||
FirebaseMessaging.onMessageOpenedApp.listen((message) => NotificationController.onAppOpenedByNotification(message, context));
|
||||
FirebaseMessaging.instance.getInitialMessage().then((message) => message == null ? null : NotificationController.onAppOpenedByNotification(message, context));
|
||||
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user