EddyVerbruggen / nativescript-nfc

:pencil: NativeScript plugin to discover, read, and write NFC tags
MIT License
84 stars 37 forks source link

readerSessionDidDetectNDEFs is not being called #67

Closed demetrius-tech closed 3 years ago

demetrius-tech commented 3 years ago

When scanning a tag (NTAG216) only readerSessionDidDetectTags is being called, but not readerSessionDidDetectNDEFs

NativeScript Version: 7 (it worked in NS 6.x, issue appeared after upgrade) Platform: iOS

demetrius-tech commented 3 years ago

According to Apple documentation, if readerSessionDidDetectTags is defined, then readerSessionDidDetectNDEFs is not called.

See here: https://developer.apple.com/documentation/corenfc/nfcndefreadersessiondelegate/2875568-readersession?language=objc

"Important: The reader session doesn’t call this method when the delegate provides the readerSession:didDetectTags: method."

So, in order to make the readerSessionDidDetectNDEFs being called, I commented out readerSessionDidDetectTags.