Creating react native NFC read/write application using https://github.com/whitedogg13/react-native-nfc-manager ->with this plugin. But I was not able to write lock after writing a NDEF record to tag.
try{
await NfcManager.writeNdefMessage(bytes)
.then(()=>NfcManager.makeReadOnlyAndroid())//Write_lock android
.then((result)=>{
console.log("Make read Only result:->",result);
});
}
catch (ex) {
console.warn('exception', ex);
_cleanUp();
}
NDEF record was written successfully, but write lock was failed. Given below is tag Info which used.
{
"canMakeReadOnly":false,
"id":"043743CE80",
"isWritable":true,
"maxSize":254,
"ndefMessage":[],
"techTypes":[
"android.nfc.tech.IsoDep",
"android.nfc.tech.NfcA",
"android.nfc.tech.Ndef"
],
"type":"NFC Forum Type 4"
}
The same tag is write lockable with NXP "TagWritter" android mobile application.
Is their any way to use transceive() method to lock/change particular "lock-bit" or to fire-up some custom commands for NFC write locking.