hidglobal / digitalpersona-devices

DigitalPersona Security Devices support library
https://hidglobal.github.io/digitalpersona-devices/index.html
MIT License
64 stars 41 forks source link

Acquisitions stops when running in background #45

Closed Dulco closed 1 year ago

Dulco commented 1 year ago

Hey there!

Im sorry to bother to much, im doing a proyect right now. My issue here is that everytime I minimize the browser, or click outside the page the acquisition pauses and wont get data from the fingerprint reader. It will work as usual if I click again in the page.

I was trying to find a way to solve this issue and reading the documentation I found the library uses websockets. So i would be happy if you can help me to understand better or if there is any workaround to my problem. my main goal is to keep the fingerprint capturing fingerprints in the background.

Thanks..

a-bronx commented 1 year ago

Hello,

This is by design: fingerprints are collected only on the active application window. There may be several applications/pages subscribed to the fingerprint reader, but only the foreground app/page can actively collect fingerprint samples. Background web pages collecting fingerprints without user's awareness, while they interact with other applications, would pose a security risk. Only some trusted native Window applications, like DigitalPersona Agent, installed into the system with user's consent, are privileged to collect fingerprints in a background, with a lowest priority, and only for limited local tasks like Windows Fast User Switch, Quick Actions etc. There is no way to restrict random untrusted third-party web pages similarly, so they are not allowed to passively listen for all fingerprint events.