Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start UWP background task without launching App even single time #101

Open
rahulsbaviskar opened this issue Nov 22, 2020 · 2 comments
Open

Comments

@rahulsbaviskar
Copy link

I have a WPF app which is deployed as a store app using desktop bridge approach. I want to create a UWP time triggered background task to do some work in a background even though my app is not launched by user. I want to know is there any way to register and trigger background task without launching the app. Any help will be appreciated. Thanks.

@myokeeh
Copy link

myokeeh commented Nov 23, 2020

This would be good to have. I've been depending on the on "on update" trigger since it's the closest thing I could find.

@vichuviswan
Copy link

@rahulsbaviskar
You could use the PreInstall task to register the time trigger background task and you may do the routine work as part of the handler for the time trigger background task.

However, if you don't want to do the operation repeatedly, instead just want to do some operation only once, you could write the logic directly in the handler of the Preinstall task.

Hope this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants