chore: Follow up notification actions
This commit is contained in:
parent
ae11d5b47f
commit
b7e112a224
3 changed files with 20 additions and 2 deletions
|
|
@ -46,13 +46,15 @@ extension NotificationResponseJson on NotificationResponse {
|
|||
void notificationTapBackground(
|
||||
NotificationResponse notificationResponse,
|
||||
) async {
|
||||
Logs().i('Notification tap in background');
|
||||
|
||||
final sendPort = IsolateNameServer.lookupPortByName('main_isolate');
|
||||
if (sendPort != null) {
|
||||
sendPort.send(notificationResponse.toJsonString());
|
||||
Logs().i('Notification tap sent to main isolate!');
|
||||
return;
|
||||
}
|
||||
Logs().i(
|
||||
'Main isolate no up - Create temporary client for notification tap intend!',
|
||||
);
|
||||
|
||||
if (!_vodInitialized) {
|
||||
await vod.init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue