This commit is contained in:
Hamza-Ayed
2024-10-02 23:47:52 +03:00
parent 6f95dafd0b
commit 79b14ab9cc
9 changed files with 298 additions and 291 deletions

View File

@@ -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(),