From b412973a6b9006b3e5413faae82c7bf7cba31a9d Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 11 Apr 2024 11:21:20 -0600 Subject: [PATCH] disable troublesome unused callbacks --- lib/services/notifications_api.dart | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/services/notifications_api.dart b/lib/services/notifications_api.dart index fa2f5f545..010e3c220 100644 --- a/lib/services/notifications_api.dart +++ b/lib/services/notifications_api.dart @@ -9,14 +9,13 @@ */ import 'package:flutter_local_notifications/flutter_local_notifications.dart'; -import 'package:rxdart/rxdart.dart'; import 'package:stackwallet/models/notification_model.dart'; import 'package:stackwallet/services/notifications_service.dart'; import 'package:stackwallet/utilities/prefs.dart'; class NotificationApi { static final _notifications = FlutterLocalNotificationsPlugin(); - static final onNotifications = BehaviorSubject(); + // static final onNotifications = BehaviorSubject(); static Future _notificationDetails() async { return const NotificationDetails( @@ -44,12 +43,12 @@ class NotificationApi { ); await _notifications.initialize( settings, - onDidReceiveNotificationResponse: (payload) async { - onNotifications.add(payload.payload); - }, - onDidReceiveBackgroundNotificationResponse: (payload) async { - onNotifications.add(payload.payload); - }, + // onDidReceiveNotificationResponse: (payload) async { + // onNotifications.add(payload.payload); + // }, + // onDidReceiveBackgroundNotificationResponse: (payload) async { + // onNotifications.add(payload.payload); + // }, ); }