Closed Bug 1039245 Opened 10 years ago Closed 10 years ago

[NFC] Move NDEF record payload parsing from NfcManager and expose it to app developers

Categories

(Firefox OS Graveyard :: NFC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.1 fixed)

RESOLVED FIXED
2.1 S1 (1aug)
Tracking Status
b2g-v2.1 --- fixed

People

(Reporter: tauzen, Assigned: tauzen)

References

Details

Attachments

(1 file)

When NfcManager receives an NDEF message it parses the first record of the message and triggers the appropriate activity according to parsing result. NfcManager has several helper methods for different types of NDEF records, each of this methods performs suitable parsing and prepares options for activity to be launched.  

We should introduce an utility method which would parse NDEF record payload according to it's tnf and type. This method will be used by NfcManager the determine which activity should be triggered. 

This method will be also used by app developers to get the payload of other NDEF records from NDEF message. So they won't need to write the payload parsing code for common records themselves.
Assignee: nobody → kmioduszewski
Blocks: 1037337, NFC-Gaia
Attached file pull-request-1039245.txt (deleted) —
Hi Greg, could you review this? There's a couple of changes here, so if you have any questions just let me know.
Attachment #8464498 - Flags: review?(gweng)
Comment on attachment 8464498 [details]
pull-request-1039245.txt

Hello, I think the patch is fine while the major change is to move the code around. Please fix the nits or comment on them and then checkin-needed.
Attachment #8464498 - Flags: review?(gweng) → review+
I've rebased the patch and fixed the comments from github as requested. Thanks for the review!
Keywords: checkin-needed
Target Milestone: --- → 2.1 S1 (1aug)
Master: https://github.com/mozilla-b2g/gaia/commit/56878d8931a9f3fbb93ca284b6fc7d4384891816
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: