diff --git a/lib/pages/dialer/dialer.dart b/lib/pages/dialer/dialer.dart index d14d5dfa7..8f314808b 100644 --- a/lib/pages/dialer/dialer.dart +++ b/lib/pages/dialer/dialer.dart @@ -299,7 +299,9 @@ class MyCallingPage extends State { L10n.of(widget.context).foregroundServiceRunning, ), iosNotificationOptions: const IOSNotificationOptions(), - foregroundTaskOptions: const ForegroundTaskOptions(), + foregroundTaskOptions: ForegroundTaskOptions( + eventAction: ForegroundTaskEventAction.nothing(), + ), ); FlutterForegroundTask.startService( notificationTitle: L10n.of(widget.context).screenSharingTitle, diff --git a/pubspec.lock b/pubspec.lock index df6893e54..6afab33c3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -500,10 +500,10 @@ packages: dependency: "direct main" description: name: flutter_foreground_task - sha256: "6cf10a27f5e344cd2ecad0752d3a5f4ec32846d82fda8753b3fe2480ebb832a3" + sha256: "9f1b25a81db95d7119d2c5cffc654048cbdd49d4056183e1beadc1a6a38f3e29" url: "https://pub.dev" source: hosted - version: "6.5.0" + version: "9.1.0" flutter_highlighter: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 7761490b8..397438af1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: file_selector: ^1.0.3 flutter: sdk: flutter - flutter_foreground_task: ^6.1.3 + flutter_foreground_task: ^9.1.0 flutter_highlighter: ^0.1.1 flutter_linkify: ^6.0.0 flutter_local_notifications: ^19.4.0