IDTech Windows SDK Guide  1.2.100.0
API reference for UniPay 1.5
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:

<DeviceCapability Name="humaninterfacedevice">
<!-- UNIPAYI_V -->
<Device Id="vidpid:0ACD 3130 usb">
<Function Type="usage:FF00 0001"/>
</Device>
</DeviceCapability>


The aforementioned code contains the vendor ID (VID) and product ID (PID) of a UniPay 1.5 device.

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="ebeab9f8-288f-4e8d-a7c9-761e553de85b"
Publisher="CN=davidt"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="ebeab9f8-288f-4e8d-a7c9-761e553de85b" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>UniPayI_V_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="UniPayI_V_Simple_Demo_UWP.App">
<uap:VisualElements
DisplayName="UniPayI_V_Simple_Demo_UWP"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="UniPayI_V_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" />
<DeviceCapability Name="humaninterfacedevice">
<!-- UNIPAYI_V -->
<Device Id="vidpid:0ACD 3130 usb">
<Function Type="usage:FF00 0001"/>
</Device>
</DeviceCapability>
</Capabilities>
</Package>