I am trying to fire a an order when I receive a notification event and am using the service code provided here. I got it working but I am trying to trigger a fire() event to print receipts on order printers. Currently it opens the printer selection popup for the order on the clover mini. The issue is instead of showing the print option on the clover device, I want to do a OrderConnector.fire() event to print the order on the kitchen printers but the OrderConnector.fire(orderID); does not send the print request to kitchen printers.
from the code here I have tried removing
new StaticOrderPrintJob.Builder().order(newOrder).build().print(getApplicationContext(), account);
and replacing it with the fire command below:
try { orderConnector.fire(newOrder.getId()); } catch (RemoteException e) { e.printStackTrace(); } catch (ClientException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } catch (BindingException e) { e.printStackTrace(); }
but it does not fire the order. the order ID is also correct. when I debug and evaluate the above fire command I get a response of true.