arx-research / libhalo

LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
https://arx.org/?source=gh
MIT License
32 stars 4 forks source link

Feature/check webnfc perm #200

Closed icedevml closed 1 year ago

icedevml commented 1 year ago

Description

It seems like there is a bug in WebNFC's NFCReader. When the web page is minimized, the call still appears to be pending, although it will become glitched. When the page is minimized on the phone and then maximized, the scans will not arrive into WebNFC API but would be directly dispatched to the system.

In order to work that around, we will detect that the web page was minimized and the call to execHaloCmdWeb() will fail under such a circumstance. The web page could reschdule the call once it's maximized again.

Checklist

Changes to the drivers

Changes to CLI

Changes to web library

Changes to nfc-manager driver