Skip to content

FlutterViewController should not show the Launch storyboard in add2app scenarios #24420

@dnfield

Description

@dnfield

Even with flutter/engine#6834, the following code will result in a flash of the launch storyboard.

  FlutterViewController* flutterViewController =
      [[FullScreenViewController alloc] init];
  flutterViewController.splashScreenView = nil;
  [self.navigationController pushViewController:flutterViewController
                                       animated:NO];

Pre-warming the engine makes it marginally better but not much, e.g.:

  // marginally better, but still flashes
  FlutterViewController* flutterViewController =
      [[FlutterViewController alloc] initWithEngine:[self engine]
                                            nibName:nil
                                             bundle:nil];
  flutterViewController.splashScreenView = nil;
  [self.navigationController pushViewController:flutterViewController
                                       animated:YES];

still flashes the launch screen.

/cc @jamesderlin

Metadata

Metadata

Assignees

Labels

a: existing-appsIntegration with existing apps via the add-to-app flowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.e: embedderUsers of the Embedder APIplatform-iosiOS applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions