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

Provide a way to get the NDEFMessage and NDEFRecord size before writing #593

Open
Snapstromegon opened this issue Jul 10, 2020 · 0 comments

Comments

@Snapstromegon
Copy link

I did not find something like this in the spec or in Chrome's current canary (86.0.4196.0) implementation.

Problem Abstract

I'm trying to write some data to NFC Tags, but I want to know how large the NDEFMessage/Record is before I'm writing it (to predict fail/success cases).

Usecase

My usecase during origin trial was, that I write some optional history data into the record and I know exactly how large the size of my card is and I want to include as much of the history as possible.

Problem / Existing Workarounds

Currently I'd need to start at some point and do a lot of trial and error which results in many read/writes or I implement the calculation myself which might result in errors.

Proposed solution

Adding a "size" attribute (or something similar) to NDEFMessage and NDEFRecord would make this usecase way easier.

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