Does the Samsung Gear S3 Classic or Frontier support the NFC Tag Library? When executing the code below, I get a "Tag not supported" exception. I have NFC enabled in the settings and the nfc.common and nfc.tag priveleges enabled in the manifest.
try
{
// get default adapters
nfcAdapter = tizen.nfc.getDefaultAdapter();
listeners =
{
onattach: function(nfcTag)
{
alert("NFC Tag's type is " + nfcTag.type);
console.log("NFC Tag's type is " + nfcTag.type);
},
ondetach: function()
{
console.log("NFC Tag is detached");
alert("NFC Tag is detached");
}
};
nfcAdapter.setTagListener(listeners);
}
catch (e) {
alert(e.message);
console.log(err.name + ": " + err.message);
}
} () );