WebAPI/WebNFC: Difference between revisions

Jump to navigation Jump to search
Line 79: Line 79:
= Application Permissions =
= Application Permissions =


NFC API can currently be used only by certified applications.
NFC API has three permissions.
* '''nfc''', which will be used by privileged applications.
* '''nfc-share''', which will be used by ceritified(internal) applications.
* '''nfc-manager', which will be used by System app.


To use general reading NDEF API, at least '''nfc-read''' permission is required.
'''nfc''' permission could be used for  general tag reading/writing, or sending NDEF to NFC Peer.
To write NDEF or to use NFCPeer, '''nfc-write''' is required.
'''nfc-share''' could be used to send large file (Blob) to another NFC peer.
 
'''nfc-manager''' is used to control the RF state of NFC hardware.
Application Usage Example:
 
  "permissions": {
    "nfc": { "access": "readwrite" }
  }
 
'''** Only for internal user **'''
For those APIs used by the nfc_manager in System app, '''nfc-manager''' permission is required. It must '''not''' be used in any other application besides System App.


= NFC example =
= NFC example =
Confirmed users
266

edits

Navigation menu