I am developing an application that uses the cash drawer.
I am using a clover mini dev kit and connect it to a cash drawer via clover hub. Using Register app, the Open Cash Drawer function worked perfectly, I can open it.
To implement in code, I have looked here: https://clover.github.io/clover-android-sdk/com/clover/sdk/cashdrawer/package-summary.html and here https://github.com/clover/android-examples/tree/master/cashdrawerexample.
However, when I build and test the code on the second link, it doesn't work, the screen always displays "No connected cash drawers". new CashDrawers (MainActivity.this).list() always returns empty.
Where did I go wrong? Any help would appreciated