Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

feat: Ndef Format with optional NdefRecord provided #28

Closed
easpinall opened this issue Aug 18, 2023 · 4 comments
Closed

feat: Ndef Format with optional NdefRecord provided #28

easpinall opened this issue Aug 18, 2023 · 4 comments

Comments

@easpinall
Copy link

easpinall commented Aug 18, 2023

Is your feature request related to a problem? Please describe:

In practice when a user needs to load data onto the NFC tag and its not yet NdefFormatted you currently need to format it first and then do a second read (nfcTagScanned) event to be able to write the initial data that was intended since you can't currently format and write in the same event process.

Describe the solution you'd like:

Currently when the tag is formatted for Ndef its writing a blank Ndef record to the tag. If the Nfc.format() command could take a optional NdefRecord as a parameter it would allow for the initial data to be written in the same event process as the formatting process.

Describe alternatives you've considered:

Double tapping the tag but this isn't user friendly for the end user or alternatively allow for a write() after the format() command, currently this gives an error stating that the NFC tag isn't Ndef formatted yet

Additional context:

Screenshot 2023-08-18 160236

@easpinall easpinall changed the title feat: feat: Ndef Format with optional NdefRecord provided Aug 18, 2023
@robingenz
Copy link
Member

@easpinall Thank you for your request. Sorry for my late response. I am currently on vacation.
It should already be possible to do this in „one step“, see #17 (comment)

@easpinall
Copy link
Author

Thanks, we have tried that and getting the same problem as @meisterm which is also depicted in the screen shot attached above.

@robingenz
Copy link
Member

I will check this and get back to you.

@robingenz robingenz added the feature Feature label Oct 19, 2023
@robingenz
Copy link
Member

I just posted a comment to the discussion: #17 (reply in thread)
I close this issue as duplicate of #17

We will continue there so I don't have to repost everything.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants