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

Consider introducing an 'ontagfound' event #604

Open
zolkis opened this issue Nov 17, 2020 · 0 comments
Open

Consider introducing an 'ontagfound' event #604

zolkis opened this issue Nov 17, 2020 · 0 comments

Comments

@zolkis
Copy link
Contributor

zolkis commented Nov 17, 2020

This is eventual future work, coming from #602 and related discussions, to align the usage flow of the API with how NFC actually works (also on Android) - namely, react to a "tagfound" event (optionally, allowing later a "tag released" event, and also allowing a start() method akin to Generic Sensors). Following a "tagfound" event, the tag may be then read and written, instead of installing readers that would provide content on the next tap (and interfere with write, for which scripts currently need a workaround).

Also, the implementation is more complex than needed, because supporting multiple readers (as a consequence of storing filters, which are not any more supported). Also, some internal slots can be removed and the reading algorithm can be simplified.

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

No branches or pull requests

2 participants