canmove, Confirmed users
1,220
edits
Ptheriault (talk | contribs) |
Ptheriault (talk | contribs) |
||
| Line 80: | Line 80: | ||
===Permission Model=== | ===Permission Model=== | ||
nfc-manager | |||
* Ability to listen to tech discovered and tech lost system message. Only the system app would generally have this permission. | |||
nfc | |||
* Any app wanting to read or write a tag needs the nfc permission | |||
* nfc permission can be read or write. nfc-read does not have access to write data to a tag | |||
* | |||
Check in code looks like | |||
receiveMessage: function receiveMessage(message) { | |||
debug("Received '" + message.name + "' message from content process"); | |||
if (!message.target.assertPermission("nfc-read")) { | |||
if (DEBUG) { | |||
debug("Nfc message " + message.name + | |||
" from a content process with no 'nfc-read' privileges."); | |||
} | |||
return null; | |||
} | |||
===Parent/Child Communication=== | ===Parent/Child Communication=== | ||