question

saad-bin-iqbal avatar image
saad-bin-iqbal asked saad-bin-iqbal commented

Application is not granted permission clover.permission.POP_CASH_DRAWER_NEW

Our application was running fine on production but recently we started getting a new permission issue "Application is not granted permission clover.permission.POP_CASH_DRAWER_NEW".
Please let us know if this issue would be resolved after adding this permission into the app's Manifest file or we would need to do some other tasks?
Clover Android SDKClover Station
3 comments
10 |2000 characters needed characters left characters exceeded

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

We also get the the message "Unknown URI content://com.clover.engine.printer.cashdrawerprovider" on clover mini when clicking button to open CashDrawer using method CashDrawer.open().

We are using SDK (compile 'com.clover.sdk:clover-android-sdk:latest.release') in our application.

0 Likes 0 ·

1 Answer

Raymond Lee avatar image
Raymond Lee Deactivated answered Raymond Lee Deactivated commented
Correct, you need to include the permission into your app's Manifest file.

Insert the following into your AndroidManifest.xml:
<uses-permission android:name="clover.permission.POP_CASH_DRAWER_NEW"/>
2 comments
10 |2000 characters needed characters left characters exceeded

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

@Raymond Lee Thanks for your response.

We have added the permission but we are getting the message "Unknown URI content://com.clover.engine.printer.cashdrawerprovider" on clover mini when clicking button to open CashDrawer using method CashDrawer.open().

We are using SDK (compile 'com.clover.sdk:clover-android-sdk:latest.release') in our application gradle.

0 Likes 0 ·

That is a strange error, as it implies that the CashDrawerProvider content provider was not registered somehow. Since this is a Production device, I recommend asking the merchant to do a factory reset, to see if it fixes the issue.

0 Likes 0 ·

Welcome to the
Clover Developer Community