I submitted a PWA to the Microsoft Store and got the following notes on my submission:
10.8.5 Your app or app metadata includes links that promote installation or purchase of software outside the Store. Your app may promote or distribute software only through the Microsoft Store.
The reason for this is that my web app has a products page with links to the various platforms the app is available on. This is so that users visiting my web app using a browser get the ability to install it as "native" app on their platform rather.
How can I detect if my web app is running as PWA through the Microsoft Store, so that I can render a trimmed version of my app without the products page?
My first idea would be to check the navigator.userAgent
, but this seems ambiguous, since the user agent will be Microsoft Edge whether the app is running "natively" or is visited manually in the browser.
I'd prefer solutions for distinguishing these use cases in JavaScript, but I'm also open for completely different approaches.