I’m building a PWA, and on my sign up page, I want to show a prompt to install the app onto the home screen if it is not already installed. So I need to detect if their mobile browser is in Standalone mode or not.
I believe I can use the javascript function window.navigator.standalone – but I don’t know how to write this javascript expression.
Could someone please suggest a javascript expression I can put into the Toolbox javascript plugin?