1
We are building a hybrid web application, which needs to print on a portable printer by bluetooth. But the printer is imported and only comes with a Java SDK, which is not our strong!
We needed to print from Javascript code, but I don’t know if I can call the Java functions printing or something like that. And the alternative would be to create a plugin, which we are already working on but will take a long time.
It is a mobile project, will be created a .apk
and is totally offline.
What is possible to do: Make a function in javascript, make an ajax request, execute a function in java (within java), and in javascript, capture the event, data, etc... of this execution (within java). here’s an explanation
– Ivan Ferrer
Have you tried this plugin? https://github.com/eddysby2000/Cordova-Bluetooth-Printer-Plugin
– fsi