From c00da77d00a479fa5d022346a6d9075f90a5c087 Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期六, 14 九月 2024 10:05:34 +0800
Subject: [PATCH] 退出登录时间调整,新风,音乐

---
 HDL-ON_iOS/AppDelegate.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 29f5d9e..5e308c5 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -271,14 +271,14 @@
             AppDomain.CurrentDomain.UnhandledException += (sender, e) => {
                 if(e.ExceptionObject is Exception exception)
                 {
-                    MainPage.Log("error","鏈鐞嗙殑寮傚父锛�" + exception.Message);
+                    MainPage.Log("error", "鏈鐞嗙殑寮傚父锛�" + exception.Message + "StackTrace: " + exception.StackTrace);
                 }
             };
 
             TaskScheduler.UnobservedTaskException += (sender, e) => {
                 if (e.Exception is Exception exception)
                 {
-                    MainPage.Log("error", "鏈鐞嗙殑寮傚父锛�" + exception.Message);
+                    MainPage.Log("error", "鏈鐞嗙殑寮傚父锛�" + exception.Message + "StackTrace: " + exception.StackTrace);
                 }
             };
             #endregion
@@ -324,13 +324,13 @@
                 Console.WriteLine("鍚姩鍙嬬洘SDK寮傚父锛�"+ex.Message);
             }
 
-            // 娉ㄥ唽杩涘叆鍓嶅彴鐨勯�氱煡
-            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
-            {
-                // 鍋滄鎾斁閾冨0
-                UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
-                UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
-            });
+            //// 娉ㄥ唽杩涘叆鍓嶅彴鐨勯�氱煡
+            //NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
+            //{
+            //    // 鍋滄鎾斁閾冨0
+            //    UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
+            //    UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
+            //});
 
             Console.WriteLine("FinishedLaunching");
             return true;

--
Gitblit v1.8.0