cordova.plugins.pdf.htmlToPDF not triggered in android 6.0.1


#1

i have tried this code in android 5.1 and 7 its working fine but android 6.0.1 it not even triggerd so please any help me to solve this problem

cordova.plugins.pdf.htmlToPDF({
                        data: this.htmlstring,
                        documentSize: "A4",
                        landscape: "portrait",
                        type: "base64"
                    },
                    (success) => {
                       alert("sucess base64")
                      this.myBase64 = success; 
                      this.loading1 = this.loadingCtrl.create({
                            content: 'Please wait...'
                       });
                      this.loading1.present(); 
                      this.savebase64AsPDF(this.folderpath,this.filename,this.myBase64,this.contentType);
                  },
                    (error) => alert(error));


#2

What is this? Link please.

Are you really using ngCordova?

What does that mean?


#3

nothing will happen if its triggered showing alert


#4

i reffered here :https://www.npmjs.com/package/cordova-pdf-generator


#5

I repeat my question:

Also, this doesn’t explain your problem any better: