question

gonogo-dev avatar image
gonogo-dev asked chanel Deactivated answered

Is there a way to clear print queue or retry printing in the event of print failures, either through the android SDK?

Currently, we are sending notifications to the clover app after successfully paying and this creates a new print job using both:
new StaticReceiptPrintJob.Builder().order(o).build().print(MainActivity.this, account, printer);new StaticOrderPrintJob.Builder().order(o).build().print(MainActivity.this, account, printer);

Only problem is it's not consistent on printing successfully every time. It just shows "FAILURE" in the Printers app (with no reason) and looking at printer statuses using getPrintJobIds(PrintJobsContract.STATE_ERROR)it shows the failed print job ID's. Is there a way we can either A) retry printing by these print job ID's or B) clear the print queue so we can send another print job through?

Please help!

Print
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

skymasterson avatar image skymasterson commented ·
Yes, we're seeing the same issue though it's happening in production with real merchants.

0 Likes 0 ·
Bejoy Nair avatar image Bejoy Nair commented ·
Yes, we see the same thing in production. This issue popped up very recentl, printing fails and also blocks rest of the the print queue from printing. The only way for the printing to resume is to remove the failed print.
Has there been any change to the PRINT API?

thx,
0 Likes 0 ·

1 Answer

chanel avatar image
chanel Deactivated answered
We've recently rolled out an update that should prevent this error from happening. So please make sure that your merchants have the most updated versions.

If anyone can reproduce this issue in sandbox, please provide the logcat/stacktrace and serial number for the device.
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community