Tap2iD SDK for Windows - Integration

Get started by integrating the Tap2iD SDK into your project. Use NuGet to fetch the necessary packages from the Credence ID Nexus repository.

Tap2iD-SDK-Windows on GitHub
Before you start

Prerequisites

Recommended Bluetooth Hardware

Use a USB Bluetooth dongle. Tested models:

πŸ“‘
πŸ“‘
Choose a path

Two ways to get started

Pick whichever fits your goal: try the bundled sample to see Tap2iD in action, or skip straight to adding the SDK to your own project.

Path A Β· Optional

Try the sample app

Run the Windows SDK installer to set up the bundled Tap2iDSampleWinUI app, drivers, and runtime. Skip this section if you only want to add the SDK to your own project.

1

Connect your Bluetooth dongle

Plug in the Mini BT540 or Mini BT542 before starting the installer so Windows recognises the adapter.

2

Download the installer

Download Tap2iD-Installer β†’

3

Launch the installer

Double-click the file to start setup. Click More info β†’ Run anyway β†’ Yes. Keep the default install path, click Next, then Install. Wait for the bundled Python installation to finish.

Installer security prompt
Installer security prompt
Run anyway prompt
Run anyway prompt
Keep default path
Keep default path
Install progress
Install progress
Python installation
Python installation
4

Select your Bluetooth device

When prompted, choose the adapter to use for mDL transactions. Enter 1 and press Enter.

Device selection prompt
Device selection prompt
Device selection entered
Device selection entered
5

Complete installation

The installer sets up Tap2IDSample and the required drivers. The application launches automatically when finished. If it does not open, search for Tap2iDSampleWinUI in the Start menu and launch it from there.

Installation complete
Installation complete
β„Ή
Installation errors. If prompted during setup, install .NET to continue. If errors occur, contact Credence ID support and attach the log file at C:\Program Files (x86)\Tap2IdWinSDKInstaller\Tap2ID.log.

Development environment

Your development environment must meet these requirements:

  • VS Visual Studio 2022: When launching for the first time, install the Windows App SDK workload.
  • πŸ”§ Minimum Framework: .NET 8.0
  • πŸ–₯ Minimum OS Version: Windows 11
  • πŸ“Ά Active internet connection: The network must not be restricted by a firewall that could block downloads or installation.
Visual Studio: Workload selection (Windows App SDK)
Visual Studio workload selection
Path B

Add Tap2iD to your project

Configure the Credence ID NuGet package source in Visual Studio, install the Tap2iDSdk package, and initialize the SDK with your license key.

01

Configure Nexus Repository in Visual Studio

Open a Windows application in Visual Studio (or create one) and add the Credence ID NuGet package source.

1

Open NuGet Package Manager

Right-click on your project in the Solution Explorer and select "Manage NuGet Packages…"

Visual Studio β†’ Right-click project β†’ Manage NuGet Packages
Solution Explorer context menu
2

Open Package Source Settings

In the NuGet Package Manager, click the Settings (βš™) gear icon in the top-right corner.

NuGet Package Manager: Settings button
NuGet Package Manager Settings button
3

Add the Credence ID Package Source

Click the "+" button and add the following URL. Keep NuGet.org and Microsoft Visual Studio Offline packages selected too.

NuGet Package Source URL
https://nexus.credenceid.com/repository/tap2id-sdk-nuget/
NuGet Options: Add new package source
NuGet Package Sources dialog
4

Select "All" as Package Source

In the NuGet Package Manager dropdown, select "All" so all sources are searched.

NuGet Package Manager: Source dropdown set to "All"
Package source dropdown set to All
02

Add the Tap2iD SDK Dependency

With the package source set up, search for and install the Tap2iDSdk package.

⚠ Make sure the device has internet access and the network is not blocked by a firewall.
1

Search and Install

In the NuGet Package Manager Browse tab, search for "Tap2iDSdk" and click "Install".

NuGet Package Manager: Searching "Tap2iDSdk"
Tap2iDSdk in NuGet search results
2

Apply Changes

Review the list of changes in the preview window and click "Apply" to confirm installation.

Preview Changes: Click Apply
Apply changes dialog
3

Accept License

When prompted with the license agreement dialog, click "I Accept" to proceed.

License Acceptance Dialog
License acceptance dialog
4

Installation Complete

Wait for the installation to finish. The output window confirms when the package is installed.

Output Window: Installation complete
Installation complete in output window

Installed packages

After installation, verify these packages appear in your project's references:

πŸ“¦
Tap2iDSdk.x.x.x.nupkg primary
πŸ“¦
BluetoothWinUI.x.x.x.nupkg auto-installed
πŸ“¦
BluetoothBumble.x.x.x.nupkg auto-installed
πŸ“¦
Tap2idBluetoothCommon.x.x.x.nupkg auto-installed
πŸ“¦
Logging.x.x.x.nupkg auto-installed
Solution Explorer: NuGet references after installation
Project References showing installed Tap2iD packages
03

Add your license key

Generate your license key on the Tap2iD SDK License Key page, then pass it when you initialize the SDK. Do not hard-code the key. Store it in appsettings.json or a secrets manager.

C#: SDK initialization
var config = new CoreSdkConfig
{
    ApiKey    = "YOUR_API_KEY",  // from verify.credenceid.com
    Transport = TransportType.BLE
};

Tap2iDSdk.InitSdk(config, new InitSdkResultListener
{
    OnSuccess = () => { /* ready */ },
    OnError   = err => { /* handle */ }
});
⚠️ Store your license key in appsettings.json or Windows Credential Manager. Do not commit it to source control.
You're all set
Sync the project. The Tap2iD Windows SDK APIs are now available in your application.
⚠️
Install Tap2IdWinSdkSetup before distributing your app
If you build and distribute your own installer, install Tap2IdWinSdkSetup on the target machine before deploying your app. It installs the Bluetooth drivers, Python runtime, and other native components the SDK depends on.

Next steps