I'm searching for a way to detect in PHP if the site/page is currently running as PWA or web.
I hoped that something inside the $_SERVER var can be used for that, but it seems to me like there is nothing that helps.
My secondary approach would be to set a cookie via appstart parameter and use that for PHP conditions. Is there any good way of detecting PWAs or a best practice?
UPDATE: Just tested setting a cookie based on the start url parameter. But it seems like PWA and Web share cookies so that is not an option.