Commit 82b45967 by tanghuan

App唤醒时,调用 appOnShow 指令

1 parent f3b50cf6
...@@ -1154,6 +1154,12 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver { ...@@ -1154,6 +1154,12 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
} }
} }
if (lifecycleState == AppLifecycleState.resumed) {
// 从后台恢复时,调用 appOnShow 指令
var resp = {'unique': '', 'cmd': 'appOnShow', 'data': '', 'errMsg': ''};
_sendResponse(resp);
}
// switch (state) { // switch (state) {
// case AppLifecycleState.resumed: // case AppLifecycleState.resumed:
// // 应用从后台回到前台时触发 // // 应用从后台回到前台时触发
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!