question

naseer5388 avatar image
naseer5388 asked van1985 edited

getting permission error Inventory_R

Getting this exception: Caused by: java.lang.SecurityException: Package: com.example.btg, not allowed permission: INVENTORY_R


I have followed all steps like adding INVETORY_R permission in manifest, then uploading APK and downloading it from sandbox dashboard. After download installed app in my simulator and even synced the register and inventory. But still getting this error don't know why.

Inventory
3 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.

bryanvargas avatar image bryanvargas ♦♦ commented ·

Can you make sure your permissions are set for your app in your developer dashboard and uninstall/reinstall the app to have the new permissions synced?

0 Likes 0 ·
naseer5388 avatar image naseer5388 bryanvargas ♦♦ commented ·

Yes I did all mentioned steps and recorded a video for you Video but still its not working unfortunately.

0 Likes 0 ·
fahad5388 avatar image fahad5388 bryanvargas ♦♦ commented ·
I am facing same issue too, i even ran scripts with sdk on simulator for pointing it to staging.
0 Likes 0 ·

1 Answer

bryanvargas avatar image
bryanvargas answered van1985 edited
The app has to be downloaded to the test merchant from your developer dashboard as well. There is a button to preview your app on the app market and you will download/install it for the permissions/apk to sync.
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.

naseer5388 avatar image naseer5388 commented ·

@bryanvargas Thanks a lot for your help. Now its working perfectly fine

0 Likes 0 ·
van1985 avatar image van1985 naseer5388 commented ·

Sorry, to be sure. I have a permission problem from my Android Studio trying to run an App to get inventory items (https://docs.clover.com/dev/docs/integrate-with-clover-android-sdk - this example).

Here is the error and the code. Also I have the correct permission in the platform:

captura-de-pantalla-2025-01-30-a-las-184619.png

captura-de-pantalla-2025-01-30-a-las-184616.png

I have the permission of write and read in inventory, and also uninstall and install the app several times....I'm missing something? Someone can help me?

I want to run the app in the device with my android studio because I need to debug some code before uploading the apk.

Thanks

Leandro G

0 Likes 0 ·

Welcome to the
Clover Developer Community