2-10/2/1
This commit is contained in:
@@ -59,7 +59,7 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
}
|
||||
|
||||
await Future.delayed(const Duration(seconds: 1));
|
||||
NotificationController().showNotification(
|
||||
NotificationController1().showNotification(
|
||||
message.notification!.title.toString(),
|
||||
message.notification!.body.toString(),
|
||||
'order',
|
||||
@@ -122,8 +122,8 @@ void main() async {
|
||||
await FirebaseMessagesController().requestFirebaseMessagingPermission();
|
||||
|
||||
FirebaseMessaging.onBackgroundMessage(backgroundMessageHandler);
|
||||
NotificationController().initNotifications();
|
||||
NotificationController().initNotifications();
|
||||
NotificationController1().initNotifications();
|
||||
// NotificationController().initNotifications();
|
||||
|
||||
await Future.wait([
|
||||
FirebaseMessagesController().getNotificationSettings(),
|
||||
|
||||
Reference in New Issue
Block a user