Skip to content

Commit

Permalink
Fixed issue with @pragma('vm:entry-point')
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruud14 committed Mar 2, 2024
1 parent 81c4f2f commit 782cfce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/services/foreground_task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:oauth2/src/authorization_exception.dart';
import 'package:spartial/services/storage.dart';

/// The foreground task start callback function should always be a top-level function.
@pragma('vm:entry-point')
void startCallback() {
// The setTaskHandler function must be called to handle the task in the background.
FlutterForegroundTask.setTaskHandler(ForegroundTaskHandler());
Expand Down

0 comments on commit 782cfce

Please sign in to comment.