Getting or setting UID with HCE

Hi, we are trying to get or set the NFC UID when doing HCE CardSession emulation, but can't find any way to either get the chip UID used in a session, or set it beforehand.

Is that possible with a normal HCE CardSession eventStream received ADPU event?

Or is another framework/product needed for this?

We've done a Interoperability request (INTEROP-214), which lead us to using HCE.

Our usecase is specifically interacting with EV chargers, that only support using the chips UID for identification.

Can Apple Pay / Wallet be an alternative to do such low level handling?

Setting a static UID is not possible with iOS HCE. Using static UIDs would have security risks, and also violate privacy policies by allowing 3rd party devices to track devices/users.

The UID will be randomized at each HCE session/connection.

We cannot discuss your interoperability request in this open forum. It would be best to follow up with your request if you have further questions.


Argun Tekant /  DTS Engineer / Core Technologies

Thanks for the clarification! The second part of my question is if "getting" the newly used UID is possible. Eg. a random UID is generated and using during the cardSession, and we can do something like cardSession.transaction.uid.

Is this possible? To get the UID for the initialized cardSession?

We need to be able to match the scanned UID to our backend system somehow.

Getting or setting UID with HCE
 
 
Q