Skip to content

When jumping from native iOS to FlutterViewController sometimes the UI freezes. #39036

@386212519

Description

@386212519

I used a communication plugin, hybrid_stack_manager, to ensure communication between native and flutter. When jumping from native iOS to FlutterViewController, sometimes the UI freezes. The tracer found that the code went to the ViewWillAppear method of flutterViewController but did not take the viewDidAppear method. Viewing the layer found that the flutterViewController layer is already on the window, but the previous layer has not fully launched the NavigationController. The page now displays the previous native page UI. When I press the home button to push the app to the background, then enter the app again and the UI for the flutter page is displayed. I have been looking for a long time and I am not sure what the problem is. Has anyone encountered such a problem? Can you share your solution? thank you very much!

Flutter Doctor

[✓] Flutter (Channel stable, v1.7.8, on Mac OS X 10.14.5 18F132, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
[✓] iOS tools - develop for iOS devices
[!] Android Studio (version 3.2)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.37.1)
[✓] Connected device (1 available)

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowframeworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallywaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions