I am developing a mobile web app. Currently I have this snippet of jQuery code which checks if the app is running full screen:
if ( !window.navigator.standalone )
{
$('#content').before( '<div class="notice">To enjoy the mobile experience to its fullest, tap the arrow button on the toolbar below, choose <b>Add to Home Screen</b>, then launch it from there.</div>' );
}
I have a few questions:
- Does
window.navigator.standalone
work on Android phones? - What is the process for a user to add a mobile web app to their home screen? I tried looking for browser screenshots but didn't find any reliable sources.
Is there an equivalent to iPhone's "apple-touch-icon" link element?Found the answer to this here.