question

ismdcf avatar image
ismdcf asked ·

Test Customer Mode on Clover Station Emulator (com.clover.sdk.util.CustomerMode)

According to the clover sdk docs for Customermode it states the following

.....Customer mode is a feature available on Clover devices (except Station).....
If you are writing an application for Clover Station, this class won't function properly. Instead using the following code snippet to get Clover Station into customer mode.

getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE |View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LOW_PROFILE | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY)
  1. So if we want to enable customer mode do we have to add the above code on each activity, and Then revert the code to normal when disabling customer mode to support clover station.
  2. Will the SECURE_PAY intent ask for signature verification on clover station if customer mode is enabled, because it did not ask on the clover mini when we ran on the devkit (SECURE_PAY returns payment canceled on all emulators so unable to test it on a clover station emulator).
  3. Furthermore we only have a clover mini devkit, which runs the customer mode as intended, but if we run the same code on the clover mini emulator it does not enable the full screen customer mode. So will it be the same for clover station as well (or is there a way to test customer mode for clover station emulator).
  4. The doc above doc states Customer mode is a feature available on Clover devices (except Station), so does this apply for both the old and the new 2018 Station devices or only for the old station.
Regards
Clover Android SDKDevKitClover StationIntentsClover Station 2018
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.

1 Answer

Chanel avatar image
Chanel answered ·
Hi @ismdcf

To fully test your app on the devices that you mean to run on, you'll need to order a Clover Station DevKit. The emulator on its own will not provide you with the full functionality that an actual device is capable of (as you can tell between using your Mini and an emulator). One of the features that we explicitly restrict on emulator is card payment processing. CustomerMode is generally only used during the payment flow, so it makes sense that this feature may not work on emulators.

When the documentation refers to Clover Station (with no other qualifiers), it means our first generation Station.
Share
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.

Welcome to the
Clover Developer Community