View Full Version : How to determine app was lauched from Home screen icon or the browser?
miroperez
23 Jul 2010, 7:53 AM
Is there a way to determine which way your app was launched? For example, if you know it was launched from the user adding it as a home icon then you might want to add more items to the main panel because you know you have more real estate.
pe_la_do
23 Jul 2010, 8:38 AM
Hi, you must view the window.navigator var.
if (("standalone" in window.navigator) && !window.navigator.standalone){
{
// NOT IN STANDALONE
} else {
// STANDALONE
}
uxdan
23 Jul 2010, 9:21 AM
I was thinking about a way to notify the user of a better experience if they added it to the home screen (more real estate, sweet loading graphic, app-like feel). I wonder if this would be the preferred way to maybe show a notification of some kind for the browser-based users?
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.