Detect whether the current page is displayed as a standalone PWA.
Checks the standard display-mode: standalone media query and the iOS Safari
navigator.standalone compatibility signal. This does not prove that the app
is installed, trusted, or controlled by a service worker.
Returns boolean
true in detected standalone presentation; otherwise false.
Detect whether the current page is displayed as a standalone PWA.
Checks the standard
display-mode: standalonemedia query and the iOS Safarinavigator.standalonecompatibility signal. This does not prove that the app is installed, trusted, or controlled by a service worker.