I’m trying to alert notifications using phonegap’s local Notification Plugin, and it alerts notifications when the application runs, but I don’t know how can I configure it to alert plugins on specific times.
Here’s the function that does the notification action:
plugins.localNotification.add({ date: new Date(), message: 'Test', id: 123 });
when I tried to put:
date: new Date(12,09,09,2,00,00)
It didn’t display any alerts. So, how can I modify it to work with different dates?
I use mobiscroll DatePicker for Android, which returns the datetime in this form:
So, it’s different from the form the form the plugin uses … [For how to upgrade the plugin to work with 2.2 check this Question]
So I tried this solution to alert notifications at specific dates:
Hope it helps 🙂