Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use this if listener callback won't work. uareu.dpfpddOpen(findCorrectDevice); #30

Open
sophiaschreur opened this issue Mar 18, 2024 · 0 comments

Comments

@sophiaschreur
Copy link

Our code sometimes would first find a device called this: broadcom corporation, control vault with fingerprint sensor. And other times find the digital persona device first.

And since the example code in the readme always used the first device, our code was periodically not working and we were so stumped why.

Finally figured it out that it was finding the wrong device.

Our fix looked like this:
const findCorrectDevice = res.devicesList.find((d: any) => d.dpfpddHwDescr.vendorName === 'DigitalPersona, Inc.')
return uareu.dpfpddOpen(findCorrectDevice);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant