title: cordova-plugin-local-notifications and data
body: <p>I use a plugin cordova called cordova-plugin-local-notifications in order to receive notifications on my device everyone so far except that I can't retrieve the value of a key on the data here's my code :</p>
  
  <pre><code>cordova.plugins.notification.local.schedule({
        title : "Test notif",
        text: "un profil a été modifié",
        data: {profilId:"somevalue"}
  });
  </code></pre>
  
  <p>You can see  that data have a profilId which is set to someValue here's my code for the notification clicks</p>
  
  <pre><code>cordova.plugins.notification.local.on("click", function(notification){
        sessionStorage.setItem("myIndex", notification.data.profilId);
        window.location.href='details.html';
  });
  </code></pre>
  
  <p>And it's here that I have a problem because notification.data is well set to : "{"profilId":"somevalue"}" but profilId is undefined.</p>
  
  <p>If anyone can explain me where a I did wrong that's will be great.</p>
  
  <p>Thanks for your time.</p>