diff --git a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FLEEngine.mm b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FLEEngine.mm index 9a50499f30..cfb6669cd7 100644 --- a/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FLEEngine.mm +++ b/engine/src/flutter/shell/platform/darwin/macos/framework/Source/FLEEngine.mm @@ -150,6 +150,7 @@ static void OnPlatformMessage(const FlutterPlatformMessage* message, FLEEngine* _project = project ?: [[FLEDartProject alloc] init]; _messageHandlers = [[NSMutableDictionary alloc] init]; + _allowHeadlessExecution = allowHeadlessExecution; return self; }