chore: Follow up notification actions

This commit is contained in:
Christian Kußowski 2025-11-12 08:37:10 +01:00
commit b7e112a224
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 20 additions and 2 deletions

View file

@ -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();