当应用程序在后台(例如什么是应用程序)

时间:2019-05-29 06:33:52

标签: ios swift api notifications actionable-notification

当我们单击通知按钮时,我正在尝试在后台应用程序时调用API。

enter image description here

 func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {

switch response.actionIdentifier {
       case "Reschedule":
             "api code"

}

0 个答案:

没有答案