hgoebl / mobile-detect.js

Device detection (phone, tablet, desktop, mobile grade, os, versions)
http://hgoebl.github.io/mobile-detect.js/
MIT License
4.12k stars 892 forks source link

How to detect standalone #74

Closed bernatfortet closed 6 years ago

bernatfortet commented 6 years ago

I'm trying to find out whether a user in a mobile devices is in standalone mode. That is, when a user adds the website to their homescreen.

Thanks

hgoebl commented 6 years ago

see https://developers.google.com/web/updates/2015/10/display-mode

bernatfortet commented 6 years ago

hi @hgoebl it would be fantastic if your library were to unify the detection for all platforms. Thanks for the link anayway