Printing From Android to Mobile Bluetooth Printer with PhoneGap
I'm new with PhoneGap but i know that it wraps web applications so that we can access native API's from javascript.
We are using Android as an embedded type of system and want to get it to work with the ADP400 BT printer. This is a compact dotmatrix printer. It seems like a great fit for a mobile device to use as a POS system.
However, I can't find any information on printing from mobile devices to BT printers using javascript.
Some printer manufacturers supply native API's for android, but is it possible to use such libraries from PhoneGap?
开发者_StackOverflow中文版Any opinion will be appreciated,
Thanks,
Hakan
You could wrap the native API's in a PhoneGap plugin to map the native API's to JavaScript. See the plugin examples here.
There is a plugin for PHonegap to handle bluetooth devices. It lacks proper documentation for new users but I hope you can figure your way out. If you have problem comment here I'll share the code which I implemented using the bluetooth example.
Good luck.
精彩评论