title: Get local notification's body text or identifier in AppDelegate Swift
body: <p>I want to access my application data in AppDelegate.swift whenever the app receives an action response. I was trying to use the </p>
  
  <pre><code>func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -&gt; Void) {
  
      if response.actionIdentifier == "check" {
          //do something to the app's data
      }
  
      completionHandler()
  
  }
  </code></pre>
  
  <p>method, but I can't locate the data because I can't get the notification's identifier nor its body text. Could somebody help me on that? Thank you guys so much.</p>
  
  <p>More Code:</p>
  
  <pre><code>//Setting content of the notification
  let content = UNMutableNotificationContent()
  content.title = "Scheduled Task"
  content.body = taskDescriptionTextField.text!
  content.badge = 1
  content.sound = UNNotificationSound.default()
  content.categoryIdentifier = "alertCategory"
  //Setting time for notification trigger
  let date = datePicker.date
  let dateCompenents = Calendar.current.dateComponents([.year,.month,.day,.hour,.minute,.second], from: date)
  let trigger = UNCalendarNotificationTrigger(dateMatching: dateCompenents, repeats: false)
  //Adding Request
  let request = UNNotificationRequest(identifier: taskDescriptionTextField.text!, content: content, trigger: trigger)
  UNUserNotificationCenter.current().add(request, withCompletionHandler: nil)
  </code></pre>