UWP Desktop Bridge app and suspend/resume
Hello,
How does suspend/resume work with an UWP app that uses Desktop Bridge? Are such apps ever suspended?
Desktop Bridge apps don't have suspend/resume based on this API documentation: https://learn.microsoft.com/en-us/uwp/api/windows.system.appresourcegroupinfo.startsuspendasync
It mentions that "This method won’t work on Desktop Bridge apps because they don’t have the concept of suspend/resume".
What concerns me is that this is a side-note in an API that isn't directly related to the Desktop Bridge. I have not been able to find Desktop Bridge related documentation that would specify how suspend/resume works with Desktop Bridge apps.
Based on my experiments, a Desktop Bridge UWP app can be suspended and resumed using Visual Studio's lifecycle controls. When the UWP app suspend is triggered, the full-trust process keeps running while the UWP app drops the AppService connection to the full-trust process and suspends.