Skip to content

Desktop Embedding should be aware of AppLifeCycleState #45270

@chunhtai

Description

@chunhtai

https://api.flutter.dev/flutter/dart-ui/AppLifecycleState-class.html

Currently, the majority of desktop embedding that go through embedder.h does not send AppLifeCycleState message to framework. That means the state is always null. This was ok because framework always enables the frame scheduling if it receives unknown state.

However, with the introducing of detached state, the engine will default to detached state and framework will disable the frame until engine become active. This become a problem because the desktop embedding does not send AppLifeCycleState.resumed message to framework, which causes the framework think engine is never going to be active.

Metadata

Metadata

Assignees

Labels

a: desktopRunning on desktope: embedderUsers of the Embedder APIengineflutter/engine related. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions