question

wsadiq avatar image
wsadiq asked ·

Force an employee to provide their passcode

Hello,


We are developing an app (like a self service kiosk). The app is being built using Clover SDK and the target platform is Clover Station 2018.


In this app, there is one screen on which certain functions can only be accessed by an employee. Very much like self-checkout machines in grocery stores where if something goes wrong, an employee has to login and clear the error.


Is there a way to force an employee (any employee) to provide their passcode? The idea is that Clover employee passcode screen is presented. Once an employee has successfully authenticated, the app can make certain buttons visible.


Regards.

Clover Station 2018Employees
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

· Write an Answer
Jeffrey Blattman avatar image
Jeffrey Blattman answered ·

You can use ACTION_AUTHENTICATE_EMPLOYEE. I think you will want to use the EXTRA_EMPLOYEE_ID variant of the call. Take a look at all the docs though to understand.

https://github.com/clover/clover-android-sdk/blob/master/clover-android-sdk/src/main/java/com/clover/sdk/v1/Intents.java#L381

To use EXTRA_EMPLOYEE_ID you obviously need to know the current employee's ID. You can use EmployeeConnector.getEmployee() to get the current employee.

https://github.com/clover/clover-android-sdk/blob/master/clover-android-sdk/src/main/java/com/clover/sdk/v3/employees/EmployeeConnector.java#L207

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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