Skip to content

[UIScene] Add warning for plugins that use lifecycle events but have not adopted scenes #175956

Description

@vashworth

If a plugin uses application lifecycle events and has not migrated to scenes yet, Flutter should print an actionable warning to inform developers.

if (![delegate conformsToProtocol:@protocol(FlutterSceneLifeCycleDelegate)]) {
// TODO(vashworth): If the plugin doesn't conform to the FlutterSceneLifeCycleDelegate,
// print a warning pointing to documentation: https://github.com/flutter/flutter/issues/175956
// [FlutterLogger logWarning:[NSString stringWithFormat:@"Plugin %@ has not migrated to
// scenes.", self.key]];
}

This first requires the documentation to be written and published.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions