Register Background Task with Access
A 4-step recipe with Microsoft Windows 10. We can help you get access.
Recipe · 4 steps
Register Background Task with Access
with Microsoft Windows 10
Resolve background access then register and verify a time-triggered task.
- Check the application's background access status. If access is already granted, skip ahead to registration; otherwise request access.
- Request background execution access when it was not already granted, and capture the resulting status.
- Register a TimeTrigger background task with the supplied entry point and an InternetAvailable condition.
- Read back the registered background task's details to confirm its trigger and conditions.
What you'll need to have ready
- name: Unique name for the background task.
- entryPoint: Fully qualified class name implementing IBackgroundTask.
- freshnessTime: TimeTrigger interval in minutes.
- oneShot: Whether the trigger fires only once.
For your developer
Arazzo workflow microsoft-windows-10:register-background-task, 4 operations: getBackgroundAccessStatus → requestBackgroundAccess → registerBackgroundTask → getBackgroundTask. Specs on APIs.io.