James
James

Reputation: 61

How to run a UWP app background completely

I have developed a UWP application service which called from a WinForms application.

So, when the WinForms application is executed, I want to run the UWP application service in the background, preferably launched hidden.

How do I launch the hidden UWP application in the background?

Upvotes: 5

Views: 4096

Answers (2)

user2026256
user2026256

Reputation:

This is possible via the iot Background App template. You will need to have embedded mode enabled and running wherever you want to run the app, though.

Read more here.

Upvotes: 1

Aman Sharma
Aman Sharma

Reputation: 698

It is not possible to run UWP apps in background like windows services run. They execute in a sandbox environment and has a sophisticated pattern of execution. You can't hide their launch, however you can run some logic of your application in background to facilitate your application like providing live tile updates, receive push notifications etc, even when your app is not running. For that you can read this article Create and register a background task and watch this video from channel 9.

Upvotes: 4

Related Questions