Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(MobileDeepLinking): Enable custom deeplinking domain

Mihai Uscat5fdb7c176c47
diff --git a/interface_config.js b/interface_config.js
index 7db8ba2719..574ad95ff6 100644
--- a/interface_config.js
+++ b/interface_config.js
@@ -230,6 +230,17 @@ var interfaceConfig = {
*/
// MOBILE_DOWNLOAD_LINK_IOS: 'https://itunes.apple.com/us/app/jitsi-meet/id1165103905',
+ /**
+ * Specify Firebase dynamic link properties for the mobile apps.
+ */
+ // MOBILE_DYNAMIC_LINK: {
+ // APN: 'org.jitsi.meet',
+ // APP_CODE: 'w2atb',
+ // CUSTOM_DOMAIN: undefined,
+ // IBI: 'com.atlassian.JitsiMeet.ios',
+ // ISI: '1165103905'
+ // },
+
/**
* Specify mobile app scheme for opening the app from the mobile browser.
*/
diff --git a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
index 09a8646ee5..36d695900e 100644
--- a/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
+++ b/react/features/deep-linking/components/DeepLinkingMobilePage.web.js
@@ -165,7 +165,7 @@ class DeepLinkingMobilePage extends Component<Props> {
_generateDownloadURL() {
const url = _URLS[Platform.OS];
- if (url) {
+ if (url && typeof interfaceConfig.MOBILE_DYNAMIC_LINK === 'undefined') {
return url;
}
@@ -175,12 +175,15 @@ class DeepLinkingMobilePage extends Component<Props> {
const {
APN = 'org.jitsi.meet',
APP_CODE = 'w2atb',
+ CUSTOM_DOMAIN = undefined,
IBI = 'com.atlassian.JitsiMeet.ios',
ISI = '1165103905'
} = interfaceConfig.MOBILE_DYNAMIC_LINK || {};
+
+ const domain = CUSTOM_DOMAIN ?? `https://${APP_CODE}.app.goo.gl`;
const IUS = interfaceConfig.APP_SCHEME || 'org.jitsi.meet';
- return `https://${APP_CODE}.app.goo.gl/?link=${
+ return `${domain}/?link=${
encodeURIComponent(window.location.href)}&apn=${
APN}&ibi=${
IBI}&isi=${