-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Closed
Copy link
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Milestone
Description
Ideally, there would be a way to wait for the engine to finish setting up. E.g., the following code is racy (and consistently is a no-op for me on a simulator):
FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"PlatformViewTest" project:nil];
[engine runWithEntrypoint:nil];
[engine.binaryMessenger sendOnChannel:@"set_scenario" message:[@"text_platform_view" dataUsingEncoding:NSUTF8StringEncoding]];Adding a sleep makes things "work".
Ideally, this message would get delivered once the engine was ready.
xster
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.