Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

DesktopBridgeHowToGetUSBDataIntheBackground

I have a desktop application that I converted to a UWP in Visual Studios. The desktop application gets USB data in the background but when converted into a UWP when unfocused or in the foreground it won't get USB data. What can I do to get USB data in the background of the Desktop Bridged application? The desktop app can get usb data in the foreground but when converted to a UWP it won't.

This is My application packaging project manifest


<?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" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" xmlns:iot="http://schemas.microsoft.com/appx/manifest/iot/windows10" IgnorableNamespaces="uap mp rescap iot">
<Identity Name="27h" Publisher="CN=6F942546-0jCA-4y7B-t002-BdD405t1A9BC" Version="1.1.5.0" />
<Properties>
<DisplayName>Application</DisplayName>
<PublisherDisplayName>Publisher</PublisherDisplayName>
<Logo>Assets\assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" 
MaxVersionTested="10.0.14393.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$">
  <uap:VisualElements DisplayName="Application" Description="UWP Application Unity" BackgroundColor="blue" Square150x150Logo="Assets\assets\Square150x150Logo.png" Square44x44Logo="Assets\assets\Square44x44Logo.png">
    <uap:LockScreen Notification="badge" BadgeLogo="Assets\assets\BadgeLogo.png" />
    <uap:DefaultTile Wide310x150Logo="Assets\assets\Wide310x150Logo.png" Square310x310Logo="Assets\assets\LargeTile.png" Square71x71Logo="Assets\assets\SmallTile.png">
    </uap:DefaultTile>
    <uap:SplashScreen Image="Assets\assets\SplashScreen.png" />
  </uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClient" />
<iot:Capability Name="systemManagement" />
<iot:Capability Name="lowLevelDevices" />
<rescap:Capability Name="runFullTrust" />
<DeviceCapability Name="bluetooth" />
</Capabilities>
</Package>

Comments