question

c716524 avatar image
c716524 asked Raymond Lee Deactivated answered

Getting Clover account information on Mini 2nd gen fails

I use the code of this example ( https://github.com/clover/android-examples/tree/ma... to get merchant account information. The code works well on all my devkits except the Clover Mini 2nd gen. Only on this devkit I get "null" as response to
CloverAccount.getAccount(this);
for my merchant. I would think that it is related to this new model, however the github example given above seems to work. Are there any known problems with the Mini 2nd gen and sandbox environment?

Clover Mini
10 |2000

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

1 Answer

Raymond Lee avatar image
Raymond Lee Deactivated answered
This issue is due to a targetSdkVersion specified for 26 (Android 8.0) or above. See here on the specific behavior change in Android 8.0 relating to getting accounts.

You will need to set a targetSdkVersion of 25 at most to avoid this issue.

Note that you can still set your compileSdkVersion to 27, to have access to any new Android attributes and API introduced past version 25.
10 |2000

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

Welcome to the
Clover Developer Community