diff --git a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js index eb51bd2f9..09a8646ee 100644 --- a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js +++ b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js @@ -94,6 +94,23 @@ class DeepLinkingMobilePage extends Component { const downloadButtonClassName = `${_SNS}__button ${_SNS}__button_primary`; + + const onOpenLinkProperties = _URLS[Platform.OS] + ? { + // When opening a link to the download page, we want to let the + // OS itself handle intercepting and opening the appropriate + // app store. This avoids potential issues with browsers, such + // as iOS Chrome, not opening the store properly. + } + : { + // When falling back to another URL (Firebase) let the page be + // opened in a new window. This helps prevent the user getting + // trapped in an app-open-cycle where going back to the mobile + // browser re-triggers the app-open behavior. + target: '_blank', + rel: 'noopener noreferrer' + }; + return (
@@ -113,20 +130,18 @@ class DeepLinkingMobilePage extends Component { { t(`${_TNS}.appNotInstalled`, { app: NATIVE_APP_NAME }) }

+ onClick = { this._onDownloadApp }> + onClick = { this._onOpenApp }> {/* */}