Hello
I try to read NFC tag to open an URL.
I have 2 devices :
- Blackberry 10 with tagwriter to send tag
- Iphone 7 who receive the tags
I write this code :
click() {
this.nfc.beginSession().subscribe(res => {
this.nfc.addNdefListener(() => {
console.log('successfully attached ndef listener');
}, (err) => {
console.log('error attaching ndef listener', err);
}).subscribe((event) => {
console.log('received ndef message. the tag contains: ', event.tag);
console.log('decoded tag id', this.nfc.bytesToHexString(event.tag.id));
});
},
err => {
console.log(err);
});
}
But it does not work. I get this message :
[general] <NSXPCConnection: 0x1c0109ea0> connection to service named com.apple.nfcd.service.corenfc: Exception caught during decoding of received message, dropping incoming message.
Exception: Exception while decoding argument 0 (#2 of invocation):
Exception: decodeObjectForKey: class "NFTechnologyEvent" not loaded or does not exist
2018-03-26 10:56:45.766957+0200 MyApp[826:212809] didInvalidateWithError Session is invalidated unexpectedly (null)
Same if i use android beam and try to send image or website.