0

I'm trying to get some info from my credit cards, and I have the impression that the only thing I can get is the NfcAdapter ID.

I'm using this code :

public partial class MainPage
{
    ProximityDevice _proximityDevice = ProximityDevice.GetDefault();

    public MainPage()
    {
        _proximityDevice.DeviceArrived += DeviceArrived;
    }

    private void DeviceArrived(ProximityDevice proximityDevice)
    {
        Deployment.Current.Dispatcher.BeginInvoke(() => Debug.WriteLine(proximityDevice.DeviceId));
    }

Even if I try another credit card, I always get the same info :

\\?\SWD#Nfp#NfcAdapter#{fb3842cd-9e2a-4f83-8fcc-4b0761139ae9}

I have 2 questions :

1- Why I get the same info everytime ?

2- Is there a way to get other infos in my credit cards ?

UPDATE

I have a Nokia Lumia 930

Wassim AZIRAR
  • 10,823
  • 38
  • 121
  • 174

1 Answers1

0

You get the same information each time because the proximityDevice represents the hardware inside your phone; it does not represent the card. It should actually be the same as _proximityDevice.

Peter Torr - MSFT
  • 11,824
  • 3
  • 18
  • 51