wxr
2024-08-06 c2cae389c932a9ab2c03d67d0276376655f26343
HDL-ON_iOS/AppDelegate.cs
@@ -324,13 +324,13 @@
                Console.WriteLine("启动友盟SDK异常:"+ex.Message);
            }
            // 注册进入前台的通知
            NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
            {
                // 停止播放铃声
                UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
                UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
            });
            //// 注册进入前台的通知
            //NSNotificationCenter.DefaultCenter.AddObserver(UIApplication.WillEnterForegroundNotification, (notification) =>
            //{
            //    // 停止播放铃声
            //    UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
            //    UNUserNotificationCenter.Current.RemoveAllDeliveredNotifications();
            //});
            Console.WriteLine("FinishedLaunching");
            return true;