Hello @minjiew ,
After doing some research I had some conclusions.
How do <rescap: Capability Name = "extendedExecutionUnconstrained" /> and <rescap: Capability Name = "extendedBackgroundTaskTime" /> cooperate with modern standby?
note: If you add the above features, the background task will run uninterrupted.
When the extended run session is active and I press the power button on a device that supports modern standby, what happens?
note: The background task will continue to run as modern standby would only affect foreground tasks and the timer will continue uninterrupted as it is a process that can run while a machine is in standby mode.
When a TimeTrigger triggers my task in the background and my app uses the extendedBackgroundTaskTime restricted feature, will the task run indefinitely?
note: Yes, the task can run indefinitely. Note that when TimeTrigger is triggered a second or third time, a new task will be created and the currently existing task will still be running. If you don't need multiple tasks running at the same time, remember to close old tasks.
Are TimeTriggers really active in modern standby?
note: Yes, exactly as mentioned above
Both answers assume that the machine is not running on battery. If the machine enters battery saving mode, the situation may change and these processes may be suspended.
If the answer was helpful, please don't forget to vote up or accept as an answer, thanks.
Yours sincerely,
Samuel