Ala sql how can i get excel file in ionic app i m using on browser its working fine but after build its not working

alasql(‘SELECT * INTO XLSX(“PurchaseReport.xlsx”,{headers:true}) FROM ?’,[$scope.response]);