Commit 2986a619 authored by 余玠's avatar 余玠

fix bug: 生命周期监听器BoostContainerLifeCycleObserver 不走background及forground

parent ca296b51
......@@ -91,14 +91,14 @@
- (void)didEnterBackground
{
[BoostMessageChannel sendEvent:@"background"
arguments:nil];
[BoostMessageChannel sendEvent:@"lifecycle"
arguments:@{@"type":@"background"}];
}
- (void)willEnterForeground
{
[BoostMessageChannel sendEvent:@"foreground"
arguments:nil];
[BoostMessageChannel sendEvent:@"lifecycle"
arguments:@{@"type":@"foreground"}];
}
- (FlutterEngine *)engine
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment