From 60df9596d566807ac7cccaad2c88138dd7b24d0c Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期日, 22 九月 2024 22:06:38 +0800 Subject: [PATCH] Update AppDelegate.cs --- HDL-ON_iOS/AppDelegate.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 29f5d9e..2cd239a 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 @@ -291,7 +291,7 @@ //{ // Shared.IOS.HDLFVSDK.Video.FVapplication(application, new NSDictionary()); //} - Console.WriteLine("111111111111"); + //Console.WriteLine("111111111111"); SetCurrentLanguage(); //Shared.Application.FontSize = 12; //Bugly.Bugly.StartWithAppId("1dc40c170a"); @@ -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