Conditional Display of Manual Installation Guide, Possible?

I want to create an installation guide for my users based on their browser type (DEVICE INFO).

However, I want this guide to appear only if the app is not already installed on their device.

Right now, when users receive the app link, some browsers don’t display the pop-up asking if they’d like to install the app. In other cases, users simply don’t understand what to do and close the prompt.

To solve this, I’d like to display a manual installation guide that appears only if the app isn’t installed.

Is this technically possible?

Thanks.

1 Like

Try the below in a JavaScript column:

function getPWADisplayMode() {
  const isStandalone = window.matchMedia('(display-mode: standalone)').matches;
  if (document.referrer.startsWith('android-app://')) {
    return 'twa';
  } else if (navigator.standalone || isStandalone) {
    return 'standalone';
  }
  return 'browser';
}

return getPWADisplayMode();
4 Likes

Works, Thank you!