Closed Bug 964194 Opened 10 years ago Closed 10 years ago

B2G NFC: remove NFCTag.getDetailsNDEF()

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED FIXED
2.1 S3 (29aug)
tracking-b2g backlog

People

(Reporter: allstars.chh, Assigned: allstars.chh)

References

Details

Attachments

(1 file)

This is mentioned by Jonas.

Are "DetailsNDEF"alreay ready when chrom sends out 'techDiscovered' system message? If so, then we should have those details contained in the 'techDiscovered' system message rather than exposing getDetailsNDEF().

Also Hsinyi mentioned maybe we could make those data as attributes in NFCTag.
I think we should keep the getDetailsNDEF function if it triggers another radio roundtrip. But if we are getting the details in the radio communication we're already doing, then we might as well include them there.
Blocks: b2g-NFC-2.0
No longer blocks: b2g-NFC-2.0
Things like "this tag type is read only, and 512 bytes in size" might be quite useful to NFC Tag application developers (it might possibly change if the tag type is changed).

There's some plans to add NDEFTag, MiFareTag, ISODepTag. So what we probably need <Tag Object Parent>.getDetails() in say, NFCTag instead if we keep it.

See: Bug 916428 (ISODep) for some ideas on that interface.
blocking-b2g: --- → backlog
Since the result of this API are also available when tag is discovered,
So we will remove this method and will add another methods 'getMaxNDEFLength', 'isReadOnly', 'canBeMadeReadonly'.
Assignee: nobody → allstars.chh
Summary: B2G NFC: Do we need NFCTag.getDetailsNDEF()? → B2G NFC: remove NFCTag.getDetailsNDEF()
Attachment #8477277 - Flags: review?(dlee) → review+
Comment on attachment 8477277 [details] [diff] [review]
Patch

Hi Smaug
This interface getDetailsNDEF will retrieve the following information of the NFCTag from nfc daemon:
- Max NDEF length
- Is this tag readonly?
- Can this tag be made to readonly?

However getDetails is too verbose and we're going to split this to more attributes (or a getter method) to make it more easier to understand.
Like
maxNDEFLength, isReadOnly, ... etc

Also NFC Research Lab Hagenberg has sent a similar feedback to W3C NFC API. [1]
So we propose to remove this API for now.
We will file another bugs to discuss to add those attributes in our NFC API later because it needs some modification in our nfcd side, which is still under discussion now.

Can you help to review this for us?

Thanks

[1]: http://lists.w3.org/Archives/Public/public-nfc/2014Jan/0016.html
Attachment #8477277 - Flags: review?(bugs)
Comment on attachment 8477277 [details] [diff] [review]
Patch

We have still ._nfcContentHelper.getDetailsNDEF and all the stuff.
Do we need all that?
Attachment #8477277 - Flags: review?(bugs) → review+
Hi, Smaug
Sorry for not being clear, like Bug 963541 we plan to remove this first from WebIDL, however we are still in-discussion that whether we should keep the oringinal impl or totally rewrite them. :P
add checkin-needed for b2g-inbound is close
Depends on: 963541
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/e74717ab1833
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S3 (29aug)
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: