Rajeev Nair
Rajeev Nair

Reputation: 759

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.

Upvotes: 0

Views: 62

Answers (2)

deeiip
deeiip

Reputation: 3379

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?

Upvotes: 0

Igor Kulman
Igor Kulman

Reputation: 16361

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

Upvotes: 1

Related Questions