我想设置一个本地通知会在两个不同的时间推送,但两个通知同时触发。这是我的代码:
let three_sec = new Date(new Date().getTime() + 3000)
let six_sec= new Date(new Date().getTime() + 6000)
moment(three_sec).add(3, "second")
moment(six_sec).add(6, "second")
this.LocalNotifications.schedule([{
id: 0,
text: "3sec",
trigger: {at: three_sec}
},{
id: 1,
text: "6second",
trigger: {at: six_sec},
}])
}