【问题标题】:After switching to Android App Bundle build format, The Unity Plugin for Branch.IO fails to initalize切换到 Android App Bundle 构建格式后,Unity Plugin for Branch.IO 无法初始化
【发布时间】:2019-12-12 23:45:44
【问题描述】:

将我们的 Unity 游戏切换到 Android App Bundle 构建格式后,Branch.IO 插件将不再初始化(或者至少不会发生来自 Branch.initSession 的回调)它之前在 apk 构建中工作。

我正在使用 Unity 2019.2.0f1 和 Branch Unity Wrapper 的 0.5.13 版

这是 Branch 的已知问题吗?有什么我想念的想法吗?

【问题讨论】:

    标签: android unity3d branch.io


    【解决方案1】:

    请确保您没有遗漏以下任何一点:

    • 使用预制件配置分支(单击“更新 iOS Wrapper”和“更新 Android 清单”)。匹配您提到的分支预制检查器here
    • 确保在 Start() 中初始化 MonoBehavior 文件中的 Branch,如 here 所述。
    • 确保您单击的链接与您在 AndroidManifest.xml 中放置的链接具有相同的分支键(您可以将 ?debug=1 附加到链接以查看更多详细信息) 4.您是否使用第三方插件?如果是,请使用此文档解决它: https://github.com/BranchMetrics/unity-branch-deep-linking-attribution/tree/master/ThirdPartySolutions

    此处概述了我们推荐的设置,请尽可能遵循它以避免混淆: https://docs.branch.io/pages/apps/unity/#integrate-branch

    这是我们的“黄金标准”示例应用程序,它是一个工作中的 Branch 应用程序,实现了许多功能: https://github.com/BranchMetrics/unity-branch-deep-linking/tree/master/BranchUnityTestBed

    如果您仍然遇到问题,请随时写信至 support@branch.io。

    【讨论】:

    • 这可能也有帮助:forum.unity.com/threads/…
    • 我已经检查了这些要点,并且无论如何我都在使用设置文档。我已经继续尝试使用 BranchUnityTestBed 项目作为 aab 统一导出进行构建,但它似乎对我不起作用。你知道 aab 格式的统一构建是否适用于 Branch.io?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-02
    相关资源
    最近更新 更多