When I tried to add tax rate to each inventory item using following code :
TaxRate taxRate = new TaxRate();
taxRate.setRate(1000l);
taxRate.setName("Custom Taxes");
taxRate.setIsDefault(false);
inventoryConnector.connect();
inventoryConnector.createTaxRate(taxRate); // Exception happend here
List<TaxRate> taxRates = new ArrayList<TaxRate>();
taxRates.add(taxRate);
newItem.setTaxRates(taxRates);
The following security exception throughs :
java.lang.SecurityException: Access denied to package
at android.os.Parcel.readException(Parcel.java:1425)
at android.os.Parcel.readException(Parcel.java:1379)
at com.clover.sdk.v3.inventory.IInventoryService$Stub$Proxy.createTaxRate(IInventoryService.java:2427)
at com.clover.sdk.v3.inventory.InventoryConnector$143.run(InventoryConnector.java:1206)
I have already added all permissions and installed from sandbox appstore as shown below:
Please help me to solve this issue.