From c9dce3e5cd7fc9ae1da072562cf448dce8cf1403 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Sat, 5 Apr 2025 15:27:21 +0800 Subject: [PATCH] fix notice --- dimensionhub/dimensionhubApp.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dimensionhub/dimensionhubApp.swift b/dimensionhub/dimensionhubApp.swift index 6c6a66e..9e2002e 100644 --- a/dimensionhub/dimensionhubApp.swift +++ b/dimensionhub/dimensionhubApp.swift @@ -59,7 +59,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD return true } - func registerForPushNotifications() { + private func registerForPushNotifications() { UNUserNotificationCenter.current().delegate = self // 请求通知权限 UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) {granted, error in