【发布时间】:2018-02-19 14:36:56
【问题描述】:
我想每天两次向我的应用用户推送一些通知。
我基本上从 ionic 文档中编写的代码,但是当我在我的真实设备上尝试它时,通知总是在设置最后一个 id 时显示。
这是我的代码:
this.localNotifications.schedule([{
id: 1,
text: 'Time to get your morning rewards!',
at: new Date(new Date().setHours(7)),
every:'day'
},{
id: 2,
text: 'Time to get your morning rewards!',
at:new Date(new Date().setHours(16)),
every:'day'
}]);
对不起,我的英语非常糟糕,希望你能理解。
【问题讨论】:
标签: ionic-framework notifications local