IDTech Windows SDK Guide  1.00.029
API reference for UniPay
Add Device Details to the Application's Manifest

In order for your application to recognize the device, the device's details must be added to the application's manifest file.

Open up your project's Package.appxmanifest file by right-clicking on it in the Solution Explorer, selecting "Open With...", and then choosing "XML (Text) Editor".

manifest_uwp.png

Search for the "Capabilities" tag and add the following code in between:

<!-- HID Devices -->
<DeviceCapability Name="humaninterfacedevice">
<!-- UNIPAY -->
<Device Id="vidpid:0ACD 3110 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- UNIPAY (Alternate) -->
<Device Id="vidpid:0ACD 3610 usb">
<Function Type="usage:0002 0026"/>
</Device>
</DeviceCapability>


The aforementioned code contains the possible combinations of vendor IDs (VID) and product IDs (PID) that a UniPay device can have depending on its configuration.

The Package.appxmanifest file should now look similar to the following:

<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
IgnorableNamespaces="uap mp">
<Identity
Name="757531c1-fe35-4ba0-b036-f3fd617220ad"
Publisher="CN=davidt"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="757531c1-fe35-4ba0-b036-f3fd617220ad" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>UniPay_Simple_Demo_UWP</DisplayName>
<PublisherDisplayName>davidt</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="UniPay_Simple_Demo_UWP.App">
<uap:VisualElements
DisplayName="UniPay_Simple_Demo_UWP"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="UniPay_Simple_Demo_UWP"
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<!-- HID Devices -->
<DeviceCapability Name="humaninterfacedevice">
<!-- UNIPAY -->
<Device Id="vidpid:0ACD 3110 usb">
<Function Type="usage:0002 0026"/>
</Device>
<!-- UNIPAY (Alternate) -->
<Device Id="vidpid:0ACD 3610 usb">
<Function Type="usage:0002 0026"/>
</Device>
</DeviceCapability>
</Capabilities>
</Package>