Hi,
I able to open cash drawer with station 2018. But when i used station Pro i could not open it.
Using below code to retrieve cash drawer list.
new AsyncTask<Void, Void, Set<CashDrawer>>() { @Override protected Set<CashDrawer> doInBackground(Void... params) { return new CashDrawers(BPSDrawerActivity.this).list(); } @Override protected void onPostExecute(Set<CashDrawer> cashDrawers) { Utils.recordLog(Constants.TRACE_DRAWER + " BPSDrawerActivity-> onResume Asynctask-> onPostPay"); if (adapter != null) { Utils.recordLog(Constants.TRACE_DRAWER + " BPSDrawerActivity-> onResume Asynctask-> onPostPay" + "adapter not null and cashDrawers.size()" + cashDrawers.size()); adapter.addData(cashDrawers); } else { Utils.recordLog(Constants.TRACE_DRAWER + " BPSDrawerActivity-> onResume Asynctask-> onPostPay" + "adapter is null"); } } }.execute();
to open drawer:
CashDrawer cd = adapter.getItem(position); cd.pop();
in gradle file
implementation 'com.clover.sdk:clover-android-sdk:248.4'
The problem is, when i am using station-2018 i got one cash drawer in list but when i am using station pro i received an empty list in asynctask hence i could not able to open the cash drawer.
Please suggest how cash drawer will work in station pro.