Alarm in ionic 4

I want to make alarm functionality in my ionic 4 app right now I am using local notification plugin but its not working properly. Please provide me any solution
createDailyAlarm(){
//let time = this.alarm.alarmTime.split(’:’);

let alarmtime = new Date();
console.log(alarmtime)
let notification:any = {
  id:1,
  title: 'upcoming alarm',
  text: 'alarm',
  trigger: { every:{ hour: 17, minute: 50} },
  //trigger: { every: { hour: 10, minute: 12 },firstAt: alarmtime},
  sound: true,
  foreground:true,
  clock:true  
}
console.log(notification);
this.localNotification.schedule(notification);
console.log("scheduled or not", this.localNotification.isScheduled(1))

}

same problem here. if you find any solution for the alarm controller then please inform me.

need a solution for this