From fc6e4f7b6559936a78df8997ae7156ae4a8e9763 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 13 四月 2023 16:01:55 +0800 Subject: [PATCH] 2023年04月13日16:01:07 --- HDL-ON_iOS/AppDelegate.cs | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index d735acc..59258cf 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -413,13 +413,15 @@ } else { - HDLCommon.Current.AdjustPushMessage(pushMes); + //HDLCommon.Current.AdjustPushMessage(pushMes); + this.CommonAdjustPushMessage(pushMes);//2023骞�04鏈�13鏃�15:55:54 淇敼 } } } else { - HDLCommon.Current.AdjustPushMessage(pushMes); + //HDLCommon.Current.AdjustPushMessage(pushMes); + this.CommonAdjustPushMessage(pushMes); } } @@ -500,6 +502,23 @@ } + public void CommonAdjustPushMessage(JPushMessageInfo pushMes) + { + new System.Threading.Thread(new System.Threading.ThreadStart(() => + { + while (MainPage.BasePageView == null) + { + System.Threading.Thread.Sleep(300); + } + Shared.Application.RunOnMainThread(() => + { + HDLCommon.Current.AdjustPushMessage(pushMes); + }); + })).Start(); + + } + + } } -- Gitblit v1.8.0