我通过PhoneGap NFC插件(link)在我的三星Galaxy S3上共享了NFC标签 然后我将手机放在阅读器ACR122U上并发送标签。我想知道如何检测标签是由某人读取还是发送到某个地方。
var record = ndef.mimeMediaRecord("Text", nfc.stringToBytes(id), nfc.stringToBytes(id));
nfc.share(
[record],
function () {
alert("Wrote data to tag.");
},
function (reason) {
alert(reason, function () {
}, "There was a problem");
}
);