1. Sign and submit your app to Clover
2. Download the app from app market to the devkit (station 2018)
3. Then you can side-load the app afterward
I am able to execute step 1 and 2
However, if I run "debug" from Android studio, I see the popup said "Application Installation Failed" due to "The device already has an application with the same package but a different signature. In order to proceed, you will have to uninstall the existing application. ... Do you want to uninstall the existing application"
I select OK and Android studio install the debug version on the machine. I am able to set the breakpoint s to examine the data here and there.
In my code, I am trying to getMerchant. I am able to call "CloverAccount.getAccount" to get the clover account. But running the following code lead me "onServiceFailure".
mMerchantConnector.getMerchant(new ServiceConnector.Callback<Merchant>() { @Override public void onServiceSuccess(Merchant result, ResultStatus status) { } @Override public void onServiceFailure(ResultStatus status) { } @Override public void onServiceConnectionFailure() { } });
The status show
ResultStatus{statusCode=FORBIDDEN, statusMessage=App doesn't have required permission: package xxxxxxx does not have permission MERCHANT_R}
Because of the popup alert, first I check the bundle.gradle. Make sure the signingConfigs is the one I used to sign the uploaded apk
signingConfigs { debug { storeFile file('clover.keystore') storePassword 'xxxxxxxxxxxx' keyAlias 'cert' keyPassword 'xxxxxxxxxxxx' }and the buildTypes
buildTypes { debug { signingConfig signingConfigs.debug }
I also double checked the permission I asked for the clover app. These permission don't change from the beginning.
(Merchant: Read, Inventory: Read, Order: Read, Write, Customer: Read, Write, Payment: Read)
I am stuck on this for 2 days. Couldn't figure out where goes wrong. Any clues will be appreciated!