Triggers Ionic3每天指定小时的本地通知
我刚看过代码,但我只试过一次Triggers Ionic3每天指定小时的本地通知,triggers,ionic3,localnotification,Triggers,Ionic3,Localnotification,我刚看过代码,但我只试过一次 //this is my code cordova.plugins.notification.local.schedule({ id: 1, title: 'Attention', text: 'Exmaple', data: { mydata: 'My hidden message this is' }, actions: [ { id: 'yes', title: 'Yes' }, { id: 'no', title: 'No
//this is my code
cordova.plugins.notification.local.schedule({
id: 1,
title: 'Attention',
text: 'Exmaple',
data: { mydata: 'My hidden message this is' },
actions: [
{ id: 'yes', title: 'Yes' },
{ id: 'no', title: 'No' }
],
trigger: { every: { hour: 11, minute: 0 } }//work only once
});
我也试过这个(只做过一次)
我希望每天在特定时间收到通知
关于这个问题:
多亏了所有的这个解决方案对我有效,使用了0.9.0-beta.3版,就像上面所说的,我希望我能帮助你
let dailyNotification = {
id: 1,
title: 'Time to report',
text: 'Send your report',
trigger: { every: { hour: 20, minute: 0} }
};
this.localNotifications.schedule(dailyNotification);
有人知道怎么解决吗?你解决了吗?没有,我找不到解决办法
let dailyNotification = {
id: 1,
title: 'Time to report',
text: 'Send your report',
trigger: { every: { hour: 20, minute: 0} }
};
this.localNotifications.schedule(dailyNotification);