WebAPI/WebNFC: Difference between revisions

316 bytes removed ,  21 January 2015
Line 89: Line 89:


= Application Dispatch Order =
= Application Dispatch Order =
Dispatch priority is handled by the NFC Manager. In the numbered list below, a low number indicates higher priority. It generally dispatches according to the NFC technology type, and then the NDEF NDEF.TNF field, and the NDEF Record type field. If an activity is to be launched, it will display a activity list if there is more than one match.
  1) Foreground App, if the callback ontagfound/onpeerfound is set.
 
  2) If the foreground app doesn't register NFC callbacks or cannot process the event, the event will be redirected to System app, and System app will fire a nfc-ndef-discovered MozActivity.
  1) Foreground App, if the callback onforegrounddispatch is set.
  2) P2P Handover Types (BT transfers, WiFi direct connection, etc.)
3) All other matches.
 
In #3, unknown tags are dispatched as a "nfc-tag-discovered" activity.


= NFC on B2G emulator =
= NFC on B2G emulator =
Confirmed users
266

edits