Hi. I’m using the ionic Native plugin DocumentViewer for display a pdf file, and all working good
cordova.plugins.SitewaertsDocumentViewer.viewDocument(FilePath, 'application/pdf', options, this.onShow, this.onClose, this.onMissingApp, this.onError)
But when i’m try to change the page when the “onClose” event is fired,
private onClose(close){
console.log("close template pdf ", close)
//alert("close pdf")
this.navCtrl.push(InputPage, {
idT: this.global.Pratica.IdRigaServizio
});
}
i have this error
Error in Success callbackId: SitewaertsDocumentViewer791885985 : TypeError: undefined is not an object (evaluating 'this.navCtrl')
TypeError: undefined is not an object (evaluating 'this.navCtrl')
it turn me crazy !!!
Thank you for your help