添加 action 参数, 传 none时点击推送时不执行任何操作

This commit is contained in:
Fin 2025-01-06 17:04:11 +08:00
parent 15f08940b4
commit 521ee65239

View File

@ -163,6 +163,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
return nil
}()
if let action = userInfo["action"] as? String, action == "none" {
return
}
// URL
if let url = url {