Skip to content

ForegroundTask 创建 FlutterEngine 错误 #353

@saicheng

Description

@saicheng
Image Image

FlutterEngine 的automaticallyRegisterPlugins为true,在FlutterEngine构造方法中会自动调用GeneratedPluginRegistrant.registerWith, 从而将所有plugin都注册到这个FlutterEngine下,FlutterEngine.destroy时会将调用plugin的onDetachedFromEngine方法,这样会影响到一些单例plugin出现异常;例如jpush_flutter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions