简体   繁体   中英

How to make the ScheduledTaskAgent start as soon as the app is installed?

How to make the ScheduledTaskAgent start as soon as the app is installed? I have seen a property LaunchOnBoot when registering the service in WMManifest file. I set it to True and does not seem to serve the purpose. Any ideas?

This is for updating a tile (Primary Tile). The tile need to be updated as soon as the user pins the app to the home screen.

You cannot to it. Your app must run when registering a ScheduledTaskAgent .

If you want this for debugging you may use ScheduledActionService.LaunchForTest() . Otherwise you can not. But the real question then would be why you need it other than debugging?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM