fix notice
This commit is contained in:
parent
3d4ca58912
commit
c9dce3e5cd
@ -59,7 +59,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func registerForPushNotifications() {
|
private func registerForPushNotifications() {
|
||||||
UNUserNotificationCenter.current().delegate = self
|
UNUserNotificationCenter.current().delegate = self
|
||||||
// 请求通知权限
|
// 请求通知权限
|
||||||
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) {granted, error in
|
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) {granted, error in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user