rijeshpk / cordova-plugin-sunmi-inner-printer-v2-v2pro

cordova-plugin-sunmi-inner-printer-v2-v2pro
Other
0 stars 2 forks source link

CapacitorJS on V2Pro #1

Open RichyFennell opened 3 years ago

RichyFennell commented 3 years ago

Hi Rijesh, Thanks for publishing this library. I have been trying to get it work with my device over the last few days. I have it loading and compiling in Android however it does not seem to be able to communicate with the printer. I have noticed a warning message in the build log:

aidl.cpp:581] refusing to generate code from aidl file defining parcelable

I am declaring the sunmiInnerPrinter below my imports in my Typescript file and my ng build / npx cap sync all

I am seeing the following errors in Android Studio:

I/Capacitor/Console: File: http://localhost/vendor.js - Line 86038 - Msg: Communicating with printer V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: Printer, action: getPrinterVersion, actionArgs: [] V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: Printer, action: getPrinterSerialNo, actionArgs: [] V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: Printer, action: getPrinterVersion, actionArgs: [] V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: Printer, action: printerInit, actionArgs: [] I/SunmiInnerPrinter: onRunResult:true E/gh: path /sys/printer_pin/printer/busy_cts E/gh: path /sys/printer_pin/printer/block_cts /sys/printer_pin/printer/block_rts Any ideas where it may be going wrong?

rijeshpk commented 3 years ago

Hi @RichyFennell Is this issue still valid or you have already resolved ?