I have an iPhone Web App, and I'm interested in detecting if the app was loaded either from:
- iPhone Safari
- iPhone installed web app (via the add to my home screen) which loads without the safari bars.
Any ideas?
I have an iPhone Web App, and I'm interested in detecting if the app was loaded either from:
Any ideas?
Can be simplified to
var webApp = window.navigator.standalone || false;
Can be simplified again to
var webApp = window.navigator.standalone;
You can detect the mode via Javascript as described above - or you can use PHP and the user agent.
Enjoy!