I have an iPhone Web App, and I\'m interested in detecting if the app was loaded either from:
I prefer this one-liner to determine whether it's fullscreen/in a web app or not.
var webApp = (typeof window.navigator.standalone != 'undefined' && window.navigator.standalone ? true : false);