Procházet zdrojové kódy

feat(MobileDeepLinking): Enable custom deeplinking domain

j8
Mihai Uscat před 5 roky
rodič
revize
5fdb7c176c

+ 11
- 0
interface_config.js Zobrazit soubor

@@ -230,6 +230,17 @@ var interfaceConfig = {
230 230
      */
231 231
     // MOBILE_DOWNLOAD_LINK_IOS: 'https://itunes.apple.com/us/app/jitsi-meet/id1165103905',
232 232
 
233
+    /**
234
+     * Specify Firebase dynamic link properties for the mobile apps.
235
+     */
236
+    // MOBILE_DYNAMIC_LINK: {
237
+    //    APN: 'org.jitsi.meet',
238
+    //    APP_CODE: 'w2atb',
239
+    //    CUSTOM_DOMAIN: undefined,
240
+    //    IBI: 'com.atlassian.JitsiMeet.ios',
241
+    //    ISI: '1165103905'
242
+    // },
243
+
233 244
     /**
234 245
      * Specify mobile app scheme for opening the app from the mobile browser.
235 246
      */

+ 5
- 2
react/features/deep-linking/components/DeepLinkingMobilePage.web.js Zobrazit soubor

@@ -165,7 +165,7 @@ class DeepLinkingMobilePage extends Component<Props> {
165 165
     _generateDownloadURL() {
166 166
         const url = _URLS[Platform.OS];
167 167
 
168
-        if (url) {
168
+        if (url && typeof interfaceConfig.MOBILE_DYNAMIC_LINK === 'undefined') {
169 169
             return url;
170 170
         }
171 171
 
@@ -175,12 +175,15 @@ class DeepLinkingMobilePage extends Component<Props> {
175 175
         const {
176 176
             APN = 'org.jitsi.meet',
177 177
             APP_CODE = 'w2atb',
178
+            CUSTOM_DOMAIN = undefined,
178 179
             IBI = 'com.atlassian.JitsiMeet.ios',
179 180
             ISI = '1165103905'
180 181
         } = interfaceConfig.MOBILE_DYNAMIC_LINK || {};
182
+
183
+        const domain = CUSTOM_DOMAIN ?? `https://${APP_CODE}.app.goo.gl`;
181 184
         const IUS = interfaceConfig.APP_SCHEME || 'org.jitsi.meet';
182 185
 
183
-        return `https://${APP_CODE}.app.goo.gl/?link=${
186
+        return `${domain}/?link=${
184 187
             encodeURIComponent(window.location.href)}&apn=${
185 188
             APN}&ibi=${
186 189
             IBI}&isi=${

Načítá se…
Zrušit
Uložit