Skip to content

Commit b0da662

Browse files
committed
refactor[UP]: refactor pushHelper
1 parent 01e0724 commit b0da662

File tree

2 files changed

+315
-308
lines changed

2 files changed

+315
-308
lines changed

lib/utils/background_push.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class BackgroundPush {
8181
);
8282
Logs().v('Flutter Local Notifications initialized');
8383
firebase?.setListeners(
84-
onMessage: (message) => pushHelper(
84+
onMessage: (message) => PushHelper.pushHelper(
8585
PushNotification.fromJson(
8686
Map<String, dynamic>.from(message['data'] ?? message),
8787
),
@@ -477,7 +477,7 @@ class BackgroundPush {
477477
);
478478
// UP may strip the devices list
479479
data['devices'] ??= [];
480-
await pushHelper(
480+
await PushHelper.pushHelper(
481481
PushNotification.fromJson(data),
482482
clients: clients,
483483
instance: instance,

0 commit comments

Comments
 (0)