title: How to implement LocalNotification using Objective-C?
body: <p>I am trying to implement local notification in my application. I don't know how to do properly, below code I am using for new data arrival process, here after how to implement Notification process and I need notifications during both <code>foreground</code> and <code>background</code> modes.</p>
  <p>Below I had successfully <code>background</code> fetching process for new data arrival checking method</p>
  <pre><code>//  Value matching and trying to get new data 
  [live_array removeObjectsInArray:stored_array];
         
  // if you require result as a string
  NSString *result = [stored_array componentsJoinedByString:@&quot;,&quot;];
  NSLog(@&quot;New Data: %@&quot;, result);   // objects as string:
  </code></pre>
  <p>Above code finally giving some <code>string</code> value...Once the value came I want to show the notification. Everything I am doing is in the App Delegate.</p>