We are using Clover customer-facing-platform SDK's RemoteDeviceConnector to start custom activity in customer facing device,
But it is throwing java.net.ConnectException: Connection refused Exception as system error in device logs and device is freezes
Dependency
implementation 'com.clover.cfp:clover-cfp-sdk:4.2.1'
Code we used to start custom activity
Account account = CloverAccount.getAccount(this); RemoteDeviceConnector remoteDeviceConnector = new RemoteDeviceConnector(this, account); CustomActivityRequest car = new CustomActivityRequest(CUSTOM_ACTIVITY_NAME, null ); executor.execute(() -> { remoteDeviceConnector.resetDevice(new ResetDeviceRequest()); remoteDeviceConnector.startCustomActivity(car, new CustomActivityListener() { @Override public void onMessageFromActivity(MessageFromActivity message) { if (message == null || message.payload == null) return; } @Override public void onCustomActivityResult(CustomActivityResponse response) { if (response == null || response.payload == null) return; if (response.payload.equals(getString(R.string.skip))) { loyaltySharedPreferences.setLoyaltyNumber(getString(R.string.skip)); } else if (!response.payload.equals(getString(R.string.finish))) { submit(response.payload); } } }); });
Device logs: