branch.io 深度链接在世博会上是如何运作的?

How does branch.io deep link works on expo?

提问人:user22386689 提问时间:11/3/2023 最后编辑:user22386689 更新时间:11/3/2023 访问量:51

问:

我一直在按照 Expo config-plugins GitHub 存储库中提供的说明将 Branch.io 集成到我的 Expo 49 应用程序中。

一切似乎都很好,我可以使用 Branch 子域“yxevl.app.link”成功打开我的应用程序。但是,我在将参数传递到此子域时遇到了问题。例如,当我尝试打开“yxevl.app.link/[email protected]”时,我的应用程序只收到通用 scheme://open。

我最初怀疑这可能是 Expo Go 的问题,所以我决定在生产环境中构建和测试该应用程序。不幸的是,问题仍然存在。

这是我app.json配置:

        {
      "expo": {
        "name": "AdGo Driver",
        "slug": "adgo-driver",
        "version": "0.1.0",
        "orientation": "portrait",
        "icon": "./assets/images/icon.png",
        "scheme": "adgo-driver",
        "userInterfaceStyle": "dark",
        "packagerOpts": {
          "config": "metro.config.js",
          "sourceExts": [
            "expo.ts",
            "expo.tsx",
            "expo.js",
            "expo.jsx",
            "ts",
            "tsx",
            "js",
            "jsx",
            "json",
            "wasm",
            "svg"
          ]
        },
        "splash": {
          "image": "./assets/images/splash.png",
          "resizeMode": "cover",
          "backgroundColor": "#ffffff"
        },
        "assetBundlePatterns": [
          "**/*"
        ],
        "ios": {
          "supportsTablet": true,
          "bundleIdentifier": "com.adgo.driver",
          "buildNumber": "1",
          "infoPlist": {
            "UIBackgroundModes": [
              "location",
              "fetch",
              "audio"
            ]
          }
        },
        "android": {
          "adaptiveIcon": {
            "foregroundImage": "./assets/images/adaptive-icon.png",
            "backgroundColor": "#ffffff"
          },
          "package": "com.adgo.driver",
          "versionCode": 1,
          "config": {
            "googleMaps": {
              "apiKey": ""
            }
          },
          "permissions": [
            "android.permission.CAMERA",
            "android.permission.RECORD_AUDIO"
          ]
        },
        "web": {
          "bundler": "metro",
          "output": "static",
          "favicon": "./assets/images/favicon.png"
        },
        "plugins": [
          "expo-router",
          [
            "./plugins/react-native-code-push-expo-plugin",
            {
              "android": {
                "CodePushDeploymentKey": ""
              },
              "ios": {
                "CodePushDeploymentKey": ""
              }
            ]
          ],
          [
            "expo-document-picker"
          ],
          [
            "expo-task-manager"
          ],
          [
            "expo-notifications",
            {}
          ],
          "react-native-background-fetch",
          [
            "expo-gradle-ext-vars",
            {
              "googlePlayServicesLocationVersion": "20.0.0",
              "appCompatVersion": "1.4.2"
            }
          ],
          [
            "expo-camera",
            {}
          ],
          [
            "expo-image-picker"
          ],
          [
            "onesignal-expo-plugin",
            {
              "mode": "production"
            }
          ],
          [
            "@config-plugins/react-native-branch",
            {
              "apiKey": ""
            }
          ]
        },
        "experiments": {
          "tsconfigPaths": true,
          "typedRoutes": true
        },
        "extra": {
          "router": {
            "origin": false
          },
          "updates": {
            "fallbackToCacheTimeout": 0
          },
          "eas": {
            "build": {
              "experimental": {
                "ios": {
                  "appExtensions": [
                    {
                      "targetName": "OneSignalNotificationServiceExtension",
                      "bundleIdentifier": "com.adgo.driver.OneSignalNotificationServiceExtension",
                      "entitlements": {
                        "com.apple.security.application-groups": [
                          "group.com.adgo.driver.onesignal"
                        ]
                      }
                    }
                  ]
                }
              }
            },
            "projectId": ""
          },
          "oneSignalAppId": ""
        },
        "owner": ""
      }
    }

react-native expo 分支

评论


答: 暂无答案