I'm trying to export an table from my app to an pdf file!
This working normal in emulator, but I can't save the file when the app is installed in my Moto G, I'm using the code bellow:
 var pdf = new jsPDF('p', 'pt', 'a4');
        var source = $('#tabelagastos')[0];
        pdf.fromHTML(source, 15, 15, {'width': 170},
                     function (dispose) {
                        var arquivo = prompt("File name");
                        pdf.save(arquivo +'.pdf');
                     });
Maybe I need to do some kind of configuration to enable this function...
I heard that I need to use the cordova file plugin, but how to use this?