Bewerken

Delen via


Meet UWP device apps

Device manufacturers can create a UWP device app that serves as a companion to their device. Device apps are able to use the full range of functionality of a peripheral or internal device and can perform privileged operations, such as firmware updates. This topic provides an overview of the features and capabilities that make a UWP device app uniquely different from a regular UWP app.

Each of these features is optional. A single device app doesn't need to use all of them. All of these features require device metadata.

For more info about what a UWP device app is and how to create one, see Building UWP device apps.

Device update

When specified as a privileged app in device metadata, UWP device apps can perform multistep device operations in a device background task. This special type of background task can run to completion even if the app is moved to the background and suspended. This is necessary to allow reliable device servicing, like changes to persistent settings or firmware, without requiring the user to sit and watch a progress bar.

windows store device apps can perform device updates, like firmware updates, in the background.

To create a background task for device servicing (device updates), use the DeviceServicingTrigger trigger. A similar trigger, DeviceUseTrigger, which allows for reliable content synchronization, is available for all UWP apps . For more info, see Device sync and update for UWP device apps.

Device background tasks constrain the amount of time the app can run in the background and are not intended to allow indefinite operation or infinite synchronization.

AutoPlay

You can configure any UWP app, including your UWP device app, to automatically start when your AutoPlay-supported device is connected to the PC. However, that app must support the AutoPlay handler and specify the experience ID in the app manifest. You can also choose to let additional UWP apps act as AutoPlay handlers for your device.

example autoplay dialog for a device.

For more info about AutoPlay and which device classes are supported in Windows 8.1, see AutoPlay for UWP device apps.

Device apps for printers

UWP device apps can highlight the special features of printers through customized print settings flyouts and notifications support. UWP device apps can also display printer status, manage print jobs, and perform printer maintenance.

For info, see these topics:

Device apps for cameras

UWP device apps can also highlight the special features of cameras through customized camera settings and special camera effects.

For more info, see these topics:

Device apps for internal devices

OEMs and component suppliers can develop UWP device apps for devices that are internal to the PC. To access a device that is associated with the system container, an app must be specified as a privileged app in device metadata. Apps for internal devices are typically preinstalled on the PC and can be downloaded from the Microsoft Store. For more info, see UWP device apps for internal devices.

Automatic installation

UWP device apps can automatically install when a user connects the device to their PC. If a connection to the Internet isn't available, Windows will try again later. Device apps are installed to All Apps.

windows store device apps can automatically install.

Warning

It's important to consider that the automatic installation feature does not provide a notification to the user when the app is installed. Some users may find this experience confusing and frustrating, and give your app a bad rating.

For more info about automatic installation, see Automatic installation for printers and cameras.

Building UWP device apps

Automatic installation for UWP device apps

AutoPlay for UWP device apps

Device sync and update for UWP device apps