How to open other SWA/SWD from your SWA
How to open other SWA/SWD from your SWA
Problem
I want to open other app as a SWA (system web app) or a SWD (system web dialog).
Solution
SWA
SWA is a standalone app. You can resize it and do anything like other standalone apps. To open as a SWA:
web_app::LaunchSystemWebAppAsync(profile_, ash::SystemWebAppType::DIAGNOSTICS);
e.g. Opens Diagnostics App and Explore App from Feedback App. Code link.
SWD
SWD is always on top of other windows. You cannot resize it. To open as a SWD:
chromeos::DiagnosticsDialog::ShowDialog();
e.g. Open Diagnostics Dialog from Shimless RMA. Code link.
Example CL
- Open as SWA: https://crrev.com/c/3688711.
- Open as SWD: https://crrev.com/c/3257886.
References