CoreNFC Domain=NFCError Code=202 "Session invalidated unexpectedly"

Hello,

I'm pretty new with iOS deployment and getting this error without any real explanation of what it means or insights into how to fix it. My app is being built in ionic and exported to Xcode and I've got it loading on my physical device. on the actual device (iPhone 11 Pro), when i tap a button that should scan and NFC tag, i get the following error:

error:Error Domain=NFCError Code=202 "Session invalidated unexpectedly" UserInfo={NSLocalizedDescription=Session invalidated unexpectedly}, errorCode: 0xca

here's what I've tried so far:

  • added CoreNFC to the linked binaries of Build Phase
  • under Targets>info I've added the key privacy-NFC usage description and the value $NFC_USAGE_DESCRIPTION (this was instructed by ionic during the build phase).

otherwise I'm at a loss and can't find must other info. Any help or insights appreciated. Thanks.

Where u able to fix this Issue? Im stuck at the same error. Added entitlement and usage description...

CoreNFC Domain=NFCError Code=202 "Session invalidated unexpectedly"
 
 
Q