In an attempt to hide the Safari UI components for an web-app bookmarked as a Homescreen Icon. I am using this meta tag
<meta name="apple-mobile-web-app-capable" content="yes" />
as specified on iPhone Dev Center but the address bar and toolbar are still there when launched from the home screen icon. What do I need to do different? Does anyone have an example?
window.top.scrollTo(0, 1);
Works on iPhone, but not in iPad. I have been successful hiding the browser components on iPad (so presumably everywhere) by using
<meta name="apple-mobile-web-app-capable" content="yes" />
and launching from a home-screen link. I am also using
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
I have not tried seeing if the browser components are still hidden if I leave out the viewport properties.