Skip to content

Commit

Permalink
[Presentation] Workaround for the notif problem on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Apr 28, 2023
1 parent c6f398e commit 3e230e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ Future<void> main() async {
setWindowMaxSize(Size.infinite);
}
final notificationService = getIt<NotificationService>();
await notificationService.registerCallBacks(
final notifFuture = notificationService.registerCallBacks(
onSelectNotification: _onSelectNotification,
onIosReceiveLocalNotification: _onDidReceiveLocalNotification,
);
//TODO: CHECK THE NOTIFICATION LOGIC
//TODO: WEBVIEW SUPPORT IN MACOS
if (!Platform.isMacOS) {
await notifFuture;
}
runApp(MyApp());
}

Expand Down

0 comments on commit 3e230e3

Please sign in to comment.