As we all know, Windows Phone 8 SDK simulators do not support NFC testing. If you have developed an NFC-based application, it means that you need two Windows Phone devices that support NFC during the test. Such configuration may discourage many independent developers.
The good news is that open-source projectsProximity tapperThis solution satisfies the requirement of NFC testing in the simulator. It can simulate NFC operation on Windows Phone 8 emulator and debug NFC between Windows Phone and windows.
Proximity tapper: Https://proximitytapper.codeplex.com/
Important:
Proximity tapperFor example, if you receive a notification from Windows Firewall when you start Windows for the first time, You must select all check boxes to allow proximity tapper to pass firewall settings. Otherwise, the function of searching for emulator during proximity tapper running will be invalid.
We recommend that you temporarily disable the firewall when running proximity tapper. When I run proximity Tapper for the first time, I am worried that the emulator cannot be searched automatically. After that, I close the firewall to automatically find the simulator.
Because Visual Studio does not support running two identical simulators at the same time, you need to select simulators with different resolutions to solve this problem. After the simulator is startedProximity tapperThe two devices are found in the devices. Press ctrl to select the two simulators and click "tap selected devices remain connected ". In this way, the NFC function can be tested between two simulators.
The URI associated message of the application is released through the NFC function. The first simulator publish URI message, and the second simulator can start the application associated with this URI after receiving the message through NFC.