Closed Bug 1034492 Opened 10 years ago Closed 10 years ago

NFC: How to handle NDEF with multiple types.

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: allstars.chh, Unassigned)

References

Details

During the NFC Work Week (6.23) in Taipei we discussed that currently we only check the type field of the *first* NDEFRecord.

However we might need to discuss if there's some NDEF with different type fields in the same NDEF Message, for example, the type of first NDEF Record is type A, and the type of the 2nd is type B.
According to Spec "NFC Data Exchange Format (NDEF) 2.4.2 Payload type", it says:

The type of the first record, by convention, SHOULD provide the processing context not only for
the first record but for the whole NDEF message.

So I wonder if we need to handle this case.
The only case I know where non-first record would take precedence, is in a smart poster message - and it's true only for URI records (if I understand the spec correctly). Section 3.4:

> If an NDEF message contains one or multiple URI [URI] records in addition
> to the Smart Poster record at the top level (i.e., not nested), the Smart Poster
> record overrides them. The NDEF application MUST use only the Smart Poster record.

I'm working on handling this situation in https://bugzilla.mozilla.org/show_bug.cgi?id=1021267.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.