WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Notifications works but not if I set a date-time to be shown
cordova -v): 8.0.0cordova platform ls):_Tell us what should happen_
notification should be shown at a certain date-time
no notification is shown
_Tell us what happens instead_
_Reproduce this issue; include code to reproduce, if relevant_
I tried to uninstall and reinstall the plugin many times.
last experiment with a brand new app
from console: this works
cordova.plugins.notification.local.schedule({
id:1,
title: 'Uno',
text: '3:00 - 4:00 PM',
foreground: true,
});
this not works:
cordova.plugins.notification.local.schedule({
id:3,
title: 'Tre',
text: '3:00 - 4:00 PM',
foreground: true,
trigger: { at: new Date(2018, 3, 22, 10, 53) }
});
also isn't working
cordova.plugins.notification.local.schedule({
id:90,
title: 'Tre',
text: '3:00 - 4:00 PM',
foreground: true,
trigger: { at: (new Date()).getTime() }
});
_What were you trying to do?_
_Include iOS / Android logs_
Look at https://github.com/katzer/cordova-plugin-local-notifications/issues/1524
There is working code in there. Your last example is wrong as you need to set the time in the future by a few seconds.
No response in four weeks so closing.