I have used “npm i xlsx” to generate and download a excel file. The below code works fine in chrome browser. I have converted the same app using cordova for android mobile and excel download is not working. Im not receiving any errors as well.
Please advice where im wrong.
const ws: XLSX.WorkSheet = XLSX.utils.aoa_to_sheet(this.ArrayList);
/* generate workbook and add the worksheet */
const wb: XLSX.WorkBook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, ‘Sheet1’);
/* save to file */