NFCPresentmentIntentAssertion validity behavior

Hello,

I would like to discuss the behavior of the expiration of NFCPresentmentIntentAssertion (test in iOS 18.5).

In the documentation we have :

The intent assertion expires if any of the following occur:

  • The intent assertion object deinitializes
  • Your app goes into the background
  • 15 seconds elapse

BUT; in fact ; only the 1st rule is applied.

The expiration seems to be random after the usage of CardSession and that's difficult to give to the user a good experience.

Has someone faced the same kind of issue; or can give an explanation?

Regards, François

The assertion should expire if any of those three events occur.

I am not sure what problem you are encountering as far as UX goes after your CardSession is over, but if you are seeing these three events not causing the assertion to expire, regardless of what happens with your CardSession, we would like to see a bug report along with some diagnostic logs for it.

First, please go to https://developer.apple.com/bug-reporting/profiles-and-logs/ and follow the instructions for "CoreNFC and SEC Frameworks" for iOS to install a logging profile on your device.

Once that is installed, then reproduce the issue. Once reproduced, then follow the instructions at the above link to create a sysdiagnose

Please file a Feedback report with the full description and details on what you are seeing not working.


Argun Tekant /  DTS Engineer / Core Technologies

Thank for the reply.

The feedback has been sent.

I am not sure what problem you are encountering as far as UX goes after your CardSession is over

We need to display something to the user about the cooldown and we can't predict correctly when it happens.

NFCPresentmentIntentAssertion validity behavior
 
 
Q