title: Trigger local notification for iOS - Cordova/Phonegap
body: <p>I am using this plugin and trying to trigger local notification for my Cordova iOS app with <a href="https://github.com/katzer/cordova-plugin-local-notifications/tree/0.7" rel="nofollow">Local notifications plugin</a>.</p>
  
  <p>I dd following steps:</p>
  
  <ol>
  <li><p>Installed plugin: <code>cordova plugin add de.appplant.cordova.plugin.local-notification@0.7.7</code></p></li>
  <li><p>Updated <em>config.xml</em>: <code>gap:plugin name="de.appplant.cordova.plugin.local-notification"</code></p></li>
  <li><p>Added the following JavaScript in head tag for </p></li>
  </ol>
  
  <p><em>index.html</em></p>
  
  <pre><code>plugin.notification.local.promptForPermission(function (granted) {
    alert("promptForPermission: "+granted);
  });
  
  plugin.notification.local.hasPermission(function (granted) {
    alert("hasPermission: "+granted);
  });
  </code></pre>
  
  <ol start="4">
  <li>Have a button in <em>index.html</em> to create a local notification after 5 secs.</li>
  </ol>
  
  <p>Code for that looks like this:</p>
  
  <pre><code>function setLocalNotification()
  {
    alert("from setLocalNotification");
    var t = new Date();
    t.setSeconds(t.getSeconds() + 3);
  
    window.plugin.notification.local.add({
      title:   'Scheduled with delay',
      message: 'Test Message ',
      date:    t
    });
  
    alert("alert set");
   };
  </code></pre>
  
  <p>I do see a prompt for user's permission and the alert from hasPermission method shows the value as true. But I am still not able to get the actual local notification I am trying to set by clicking a button. I have already updated the <em>APPLocalNotification.m</em> file for the <a href="https://github.com/katzer/cordova-plugin-local-notifications/issues/281" rel="nofollow">this issue</a> by copying <a href="https://github.com/pavoltanuska/cordova-plugin-local-notifications/commit/2e6ab6590c1ea703bd4ced3d0005bf4c7e7a4339" rel="nofollow">this</a> fix.</p>
  
  <p>I don't see any more errors in the console log but I am still not able to trigger a local notification.</p>