0

我想设置每天的通知,从使用日期选择器选择的日期和时间开始,在我的代码下方,但是当我首先选择插件更改时间和日期时,如果我删除 every:"day" 那么我得到正确的日期和时间

    this.localNotifications.schedule({
          id: this.id,
          title: this.data.description,
          text: 'Daily Payment Reminder for '+ this.data.description+ ' '+ 'Amount: €' + this.data.amount,
          trigger: {count:1 ,firstAt:new Date(this.data.date) },
          every: "day",
          data: {"id": this.id, "name": this.id},     
          foreground: true,  

          actions: [
            { id: 'yes', title: 'Yes' },
            { id: 'no',  title: 'No' }
          ], 
       });
4

0 回答 0