title: Local Notification on locked screen ios
body: <p>I want to send Local Notification when screen is locked in iOS.
  Below is the code I've added.But unable to get notified when screen is locked </p>
  
  <pre><code>let notification = UILocalNotification()
  notification.alertAction = "Go back to App"
  notification.alertBody = "Phone Found..!!"
  
  notification.fireDate = NSDate(timeIntervalSinceNow: 1) as Date
  UIApplication.shared.scheduleLocalNotification(notification)
  notification.soundName = UILocalNotificationDefaultSoundName 
  </code></pre>
  
  <p>Please suggest, what I'm missing.
  Thank you in advance.</p>