How to add event to android device calendar in ionic without open calendar?

I tried the below code, but it opens the default android calendar app with filling data. But i need to save data to default android calendar app without opening.

let date = new Date();
this.calendar.createEventInteractively('New Booking', 'Location', 'Special 
 Notes', date, date).then(res => {
}, err => {
console.log('err: ', err);
});

Source: New feed
Source Url How to add event to android device calendar in ionic without open calendar?