0

How to send notification in notification area using Cordova without push-notification service like:

window.plugins.PluginName.Notify('Title','');
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
JavaScript Linq
  • 2,605
  • 3
  • 13
  • 12

1 Answers1

1

You can use the Cordova local notifications plugin. Inside the documentation you can find everything you need to know; anyway this is an example code:

cordova.plugins.notification.local.schedule({
    id: 1,
    text: "Single Notification",
    sound: isAndroid ? 'file://sound.mp3' : 'file://beep.caf',
    data: { secret:key }
});
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
  • I am trying https://msdn.microsoft.com/en-in/library/dn757051.aspx but I am not able to install it. Can you tell how can I use it ? – JavaScript Linq Sep 14 '15 at 07:44
  • Have you tried with the "custom git repository" install? – lifeisfoo Sep 14 '15 at 07:56
  • Yes downloaded it as zip and add file manually to copy past but it did not work. Can you please screen shot how should I do it ? – JavaScript Linq Sep 14 '15 at 08:05
  • We're going off topic here; if you want, ask another question about installing a custom plugin in visual studio. Anyway, if you've found this answer useful accept it. – lifeisfoo Sep 14 '15 at 08:11