I am trying to share data between 2 devices using ionic NFC plugin. By using below code:
this.platform.ready().then(() => {
console.log("platform.ready() success");
this.nfc.share([this.ndef.textRecord('Hello world')]).then( data =>{
console.log("Success");
},
err => {
console.log("error: ", err);
});
},
err => {
console.log('platform.ready(): ', err);
});
After the NfcPlugin Initialized I am getting this error:
NDEF_PUSH_DISABLED
Can any one guide me how to sort out this issue?