title: how to use window.plugin.notification.local.add or ontrigger with a date which will be inserted later (dynamically)
body: <p>The notification should trigger on the selected date and time. <br><br></p>
  
  <p>The notification works in background too but  I can just hear the sound and the notification does not appear on the top. <br>
  I have tried with the method "ontrigger" but it hasn't worked. What should I do? <br>
  Please, help me.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>....
  var reminderTime = new Date(DateFromTheDataBase[index]);
  
  opt = {
    id         : indexID,
    title      : 'Title',
    message    : data.intent+'\n',
    sound      : '/www/mySound/sound.wav',
    autoCancel : true,
    date   : reminderTime
  }
     if(window.plugin &amp;&amp; window.plugin.notification.local){ 
      //window.plugin.notification.local.cancelAll();
      window.plugin.notification.local.add(opt);
  }</code></pre>
  </div>
  </div>
  </p>