|
|
@ -72,7 +72,7 @@ class PushUtils { |
|
|
|
); |
|
|
|
); |
|
|
|
await AppStorage.init(); |
|
|
|
await AppStorage.init(); |
|
|
|
|
|
|
|
|
|
|
|
final keypair = await loadRSAKeypair(AppStorage(AppIDs.notifications)); |
|
|
|
final keypair = await loadRSAKeypair(const AppStorage(AppIDs.notifications)); |
|
|
|
|
|
|
|
|
|
|
|
for (final message in Uri(query: utf8.decode(messages)).queryParameters.values) { |
|
|
|
for (final message in Uri(query: utf8.decode(messages)).queryParameters.values) { |
|
|
|
final data = json.decode(message) as Map<String, dynamic>; |
|
|
|
final data = json.decode(message) as Map<String, dynamic>; |
|
|
@ -98,7 +98,7 @@ class PushUtils { |
|
|
|
NotificationsNotification? notification; |
|
|
|
NotificationsNotification? notification; |
|
|
|
AndroidBitmap<Object>? largeIconBitmap; |
|
|
|
AndroidBitmap<Object>? largeIconBitmap; |
|
|
|
try { |
|
|
|
try { |
|
|
|
accounts = loadAccounts(AppStorage('accounts')); |
|
|
|
accounts = loadAccounts(const AppStorage('accounts')); |
|
|
|
account = accounts.tryFind(instance); |
|
|
|
account = accounts.tryFind(instance); |
|
|
|
if (account != null) { |
|
|
|
if (account != null) { |
|
|
|
notification = |
|
|
|
notification = |
|
|
|