Код взят из How to detect if web app running standalone on Chrome mobile
isInWebAppiOS = (window.navigator.standalone === true); isInWebAppChrome = (window.matchMedia('(display-mode: standalone)').matches);
isInWebAppiOS = ; isInWebAppChrome = ;