浏览代码

feat(MobileDeepLinking): Enable custom deeplinking domain

j8
Mihai Uscat 5 年前
父节点
当前提交
5fdb7c176c
共有 2 个文件被更改,包括 16 次插入2 次删除
  1. 11
    0
      interface_config.js
  2. 5
    2
      react/features/deep-linking/components/DeepLinkingMobilePage.web.js

+ 11
- 0
interface_config.js 查看文件

230
      */
230
      */
231
     // MOBILE_DOWNLOAD_LINK_IOS: 'https://itunes.apple.com/us/app/jitsi-meet/id1165103905',
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
      * Specify mobile app scheme for opening the app from the mobile browser.
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 查看文件

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

正在加载...
取消
保存