WebAPI/WebNFC: Difference between revisions

Line 372: Line 372:


= Application Dispatch Order =
= Application Dispatch Order =
Priority (a low number is higher priority):
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.


Declared support levels:
  1) Foreground App, if the callback onforegrounddispatch is set.
 
  1) Foreground App with declared type support (NFC tag writing apps need to be able to hold the screen so it can write the message, privilaged nfc permisisons).
  2) P2P Handover Types (BT transfers, WiFi direct connection, etc.)
  2) P2P Handover Types (BT transfers, WiFi direct connection, etc.)
  3) Specific declared Type support.
  3) All other matches.


In #3, unknown tags are dispatched as a "nfc-tag-discovered" activity, but will require Web API support to be added (MiFare, proprietary data formats, etc.).
In #3, unknown tags are dispatched as a "nfc-tag-discovered" activity.


= NFC Resources =
= NFC Resources =
Confirmed users
153

edits