scheduleNotification: function(duration) {
cordova.plugins.notification.local.schedule({
id : Math.floor(Math.random() * 1000),
title : 'Meter',
text : 'Your meter time expires soon',
every : 'minute',
autoClear : true,
at : new Date(new Date().getTime() + duration*60*1000)
});
}
which doesn't give above message on iOS, however, on both OS's it doesn't cancel the notification when it is clicked.
In case it matters:
cordova 5.2.0
de.appplant.cordova.plugin.local-notification 0.8.2dev2
iPhone 6 with iOS v8.4
Samsung S6 Edge with Android v 5.0.2
I schedule a notification like this:
On iOS I get a message:
but not on Android! Therefore I set:
which doesn't give above message on iOS, however, on both OS's it doesn't cancel the notification when it is clicked. In case it matters: cordova 5.2.0 de.appplant.cordova.plugin.local-notification 0.8.2dev2 iPhone 6 with iOS v8.4 Samsung S6 Edge with Android v 5.0.2