How to write data to a file using ngCordova?

Try to read this one https://forum.ionicframework.com/t/problem-with-angular-pdf-and-pdfmake/50140/11

Let me know if it solves your problem.