iPhone HCE CardSession handlin

Hi, I'm wondering if there is any better documentation relating to card session handling. The informations are kind of limited: https://developer.apple.com/documentation/corenfc/cardsession/ It's not clear what should be used for keeping session or should it be created again after each transaction ? When I create a card session I pass the transaction but when at the and I call stopEmulation on card session than there is a problem with another transaction. What about the NFCPresentmentIntentAssertion? I know there's not information about "maximum suppression duration". I may only check isValid or acquire() on it. There's no information about how to properly manage it for another transaction.

To sum up is that I would like to know should I create the new cardSession for each transaction (which would be strange cause it looks like singleton for me). If theres any impact when calling stopEnumaltion to cardSession or the startEmulation function may be called? The main issue is the 'double tap' flow where user must authenticate him during transaction.

Both reader and emulation sessions are time limited, and will expire. Also you can't have active reader and emulation sessions simultaneously. So you would have to stope one to start the other.

It is going to be difficult to provide meaningful guidance without understanding your specific use case that requires extending your sessions.

If you would like to discuss your specific use case in detail, and for us to share some additional information, please open a support request at https://developer.apple.com/contact/request/code-level-support/ and reference this forum thread in the "Did someone from Apple ask you to submit ..." section

iPhone HCE CardSession handlin
 
 
Q