Gkapoor
Gkapoor

Reputation: 850

How to get unique fixed NFC ID?

Is there any way to get some device id or unique & fixed id on P2P communication through NFC devices?

I'm trying to get some unique id which I can check later if that was the same device or not. Right now I'm getting random id on each tap which is very difficult to identified the same device.

Thanks, Gaurav Kapoor

Upvotes: 0

Views: 2361

Answers (1)

Andrew
Andrew

Reputation: 10172

On Android not unless you install your own App that does Host Card Emulation and returns a unique ID.

For NFC the ID is designed only to prevent card clash when 2 Cards are presented to a NFC reader at the same time and thus don't need to be unique, just likely to be different and does not need to be static.

Thus Android OS generates a random number each time as a security precaution against it being used to track phones.

Upvotes: 1

Related Questions