question

bassel avatar image
bassel asked David Marginian Deactivated answered

Lockscreen unlock by employee id returns false

Hi,

I am trying to use screenlock class to unlock by employee id, but it keeps returning false and doesn't process it.

Is there any requirements besides the sample code below:

   Lockscreen ls = new Lockscreen(myActivity);
   boolean isUnlocked = ls.unlock(empId);
Clover Flexlockscreen
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

·
David Marginian avatar image
David Marginian Deactivated answered

Are you checking to make sure the device is locked? Attempting to unlock a device that is already unlocked will fail. Are you passing a valid employee id?

You may want to take a look at the comments at the top of LockScreen, they are quite thorough: https://github.com/clover/clover-android-sdk/blob/d9aaed6d6f590e378d8ac384f48a33c1df9e52e2/clover-android-sdk/src/main/java/com/clover/sdk/Lockscreen.java

10 |2000

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