Use PDA device to print something in a Ionic app

I have an IPDA015 PDA Android device. I’m building an Ionic 3 application, which I want to be able to print texts using the integrated Thermal Printer of the device. For this purpose, I’ve added cordova-plugin-printer to my project. I’m using this line of code to print something:

this.printerService.print("Some text");

But it takes me to a new screen outside of the app which asks me to save the text as pdf instead of printing it.

Is there any way to print the text directly? Am I using the right plugin for this purpose?

how to run Apk in PDA device

same issue , did you solve this