nfcRead¶
nfcRead
forces a NFC scan and passes the result in the payload of the then
chain. The action result contains the following properties:
text
: String: The first entry of the NDEFMessagesid
: String: The id of the tag. (only supported in android)nfcEvent
: Object: The complete result of the native NFC plugin.
With filter¶
see filter for more information
{
"label": "NFC",
"icon": "icon-broadcast",
"action": "nfcRead",
"then": {
"action": "filter",
"actionValues": [
{
"attribute": "DESCRIPTION",
"value": "${object.$payload.text}"
}
]
}
}
With scriptFilter¶
see scriptFilter for more information
{
"label": "NFC Filter",
"icon": "icon-broadcast",
"action": "nfcRead",
"then": {
"action": "scriptFilter",
"actionValues": [
{
"clear": true,
"js": "var desc = value.payload.text.split('|')[1]; eqFilter('DESCRIPTION', desc)"
}
]
}
}