title: Notification on Iphone when application is killed from the background
body: <p>I am developing an iPhone App in which there is a server which sends the push notification, that notification is just to intimate that the new message is arrived.</p>
  
  <p>The notification that is coming from the server is sampled below :</p>
  
  <blockquote>
    <p>{"last_updated":"2015-04-07:15:00:00","aps":{"badge":2,"alert":{"action-loc-key":"Open","body":"New Message"},"content-available":1}}</p>
  </blockquote>
  
  <p>I can pull the exact message from the server, if application is running in background and then I show the local notification with the exact message. </p>
  
  <p>But if the application is not running in background then the notification that is coming from the server is shown.</p>
  
  <p>How can I handle this scenario ?</p>