refactor: Store and fix missing persistence of some values
This commit is contained in:
parent
c10fe91636
commit
c9c2620ad4
12 changed files with 120 additions and 165 deletions
|
|
@ -98,7 +98,11 @@ Future<void> _tryPushHelper(
|
|||
//onDidReceiveBackgroundNotificationResponse: onSelectNotification,
|
||||
);
|
||||
|
||||
client ??= (await ClientManager.getClients(initialize: false)).first;
|
||||
client ??= (await ClientManager.getClients(
|
||||
initialize: false,
|
||||
store: await SharedPreferences.getInstance(),
|
||||
))
|
||||
.first;
|
||||
final event = await client.getEventByPushNotification(
|
||||
notification,
|
||||
storeInDatabase: isBackgroundMessage,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue