title: Is it possible to make an in-app button that triggers the PWA "Add to Home Screen" install banner?
body: <p>I understand that with a properly made Progressive Web App mobile browsers will display a banner prompting users to 'Install' the app on their home screen.</p>
  <p>I have been looking around for a way to trigger that prompt from within the app, but have not been able to find anything.</p>
  <p>Is there a line of JavaScript that can be used to call the install prompt banner at any time?? Something that I could add to a install button tucked away in a help screen for instance?</p>
  <p>It might be difficult for some users to find the &quot;Add to Home Screen&quot; option if they missed the install banner prompt. I'd like to give them a button they can click to be prompted again.</p>
  <h3><strong>2020 EDIT</strong>: Yes, this is possible in Chrome - see <a href="https://stackoverflow.com/a/64727286/8620945">answer below</a></h3>
  <p>See this great article: <a href="https://web.dev/customize-install/" rel="noreferrer">How to provide your own in-app install experience</a> and <a href="https://pwa-install-demo.netlify.app/" rel="noreferrer">my working demo</a> of the article's process <a href="https://github.com/adueck/pwa-install-demo" rel="noreferrer">applied in a React app</a>.</p>
  <p>Or for a slightly different approach, see <a href="https://github.com/RobinLinus/snapdrop" rel="noreferrer">how snapdrop.net did it</a>.</p>