|
@@ -127,12 +127,13 @@ class _HomePageState extends State<HomePage> |
|
|
|
|
|
|
|
|
}*/ |
|
|
}*/ |
|
|
|
|
|
|
|
|
//app后台杀死时候的还原 |
|
|
|
|
|
Moblink.restoreScene(_restore); |
|
|
|
|
|
|
|
|
|
|
|
// 监听开始(传递监听到原生端,用户监听场景还原的数据回传回来) |
|
|
// 监听开始(传递监听到原生端,用户监听场景还原的数据回传回来) |
|
|
eventChannelSubscription = |
|
|
eventChannelSubscription = |
|
|
_eventChannel.receiveBroadcastStream().listen(_onEvent, onError: _onError); |
|
|
_eventChannel.receiveBroadcastStream().listen(_onEvent, onError: _onError); |
|
|
|
|
|
|
|
|
|
|
|
//app后台杀死时候的还原 |
|
|
|
|
|
Moblink.restoreScene(_restore); |
|
|
logOutSubscription = EventUtil.instance.on<LogOut>().listen((event) { |
|
|
logOutSubscription = EventUtil.instance.on<LogOut>().listen((event) { |
|
|
MobPushUtil.deleteAlias(); |
|
|
MobPushUtil.deleteAlias(); |
|
|
SharedPreferencesUtil.setStringValue(Constants.isSetTag, "0"); |
|
|
SharedPreferencesUtil.setStringValue(Constants.isSetTag, "0"); |
|
@@ -455,6 +456,7 @@ class _HomePageState extends State<HomePage> |
|
|
//app存在后台时候的还原 |
|
|
//app存在后台时候的还原 |
|
|
void _onEvent(Object event) { |
|
|
void _onEvent(Object event) { |
|
|
Logger.debug('返回的内容: $event'); |
|
|
Logger.debug('返回的内容: $event'); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
if (null != event) { |
|
|
if (null != event) { |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(event); |
|
|
Map<String, dynamic> params = Map<String, dynamic>.from(event); |
|
|