项目中多个iOS应用的Firebase动态链接 [英] Firebase dynamic links for multiple iOS apps in project

查看:119
本文介绍了项目中多个iOS应用的Firebase动态链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Firebase项目,其中包含两个iOS应用程序和两个Android应用程序. 这些应用程序需要共享数据库和用户,因此这种设计看起来很自然.

I have a firebase project with two iOS apps and two Android apps. These apps needs to share databases and users so this design seems natural.

关于动态链接,Android轻而易举地工作,但我在iOS方面苦苦挣扎.

Regarding dynamic links, Android works like a breeze but I’m struggling with the iOS part.

基本的动态链接设置很容易,难点(不可能?)部分是根据bundleID制作指向正确应用的动态链接.

Basic dynamic links setup is easy, the difficult (impossible?) part is to make dynamic link that routes toward the proper app, based on bundleID.

Firebase自动生成 apple-app-site-association 文件,但所有应用程序的路径组件始终相同:["/*"]

Firebase auto-generates the apple-app-site-association files but the paths components for all apps is always the same : ["/*"]

{"applinks":
     {"apps":[],
      "details":[
          {"appID":"XXXXX.com.test.app1","paths":["/*"]}, 
          {"appID":"XXXXX.com.test.app2","paths":["/*"]}]
     }
}

因此,第一个应用程序 app1 始终匹配,所有深层链接均指向该应用程序.

As a consequence, the first app app1 always match and all deep links are directed towards this app.

目前,我无法打开指向 app2 的动态链接.

At this point, i'm unable to open a dynamic link to app2.

即使在Android应用程序上完全可用,该配置文件也不存在.

The documentation is inexistant for this configuration, even if this fully functional on Android apps.

我在这里想念什么吗?

Am i missing something here ?

推荐答案

Firebase动态链接对同一项目中的多个iOS应用程序的支持有限.我们正计划改善这种支持,但日期可能没有预计的ETA,可能是2018年第一季度.

Firebase Dynamic Links has limited support for multiple iOS Apps in the same project. We are planning to improve this support, but no ETA on the dates, likely Q1 2018.

这是在一个项目中为多个iOS应用设置Firebase动态链接的最典型示例之一: https://photos.app.goo.gl/apple-app-site-association

Here is one of the most typical example of Firebase Dynamic Links setup for several iOS App in one project: https://photos.app.goo.gl/apple-app-site-association

如果未在iOS设备上安装app1,您仍然应该可以打开app2.

You still should be able to open app2, if app1 is not installed on iOS device.

我相信您可以通过删除app1并将app1重新添加到项目中来更改apple-app-site-association中Apps的顺序.

I believe you can change order of the Apps in apple-app-site-association by deleting app1 and re-adding app1 to the project.

我们确实收到了更多有关允许在apple-app-site-association文件中重新排序应用优先级的请求.例如,开发人员拥有免费的付费应用程序,因此他们实际上希望动态链接在这两个应用程序中都能正常工作.

We do receive more requests on allowing to re-order priority of the App in apple-app-site-association file. For example, developers have free and paid App, so they actually want for dynamic link to work in both Apps.

作为一种解决方法,如果在不需要时打开了app1,则可以使用customURL方案重新打开正确的app2.这不是最佳的用户体验.

As a workaround, you may be able to use customURL scheme to re-open correct app2, if app1 was opened when this was not desired. This would be not the best user experience.

如果您还有其他疑问,请随时打开Firebase支持票证共享私人信息.

Let me know if you have more questions, feel free to open Firebase support ticket to share private information.

这篇关于项目中多个iOS应用的Firebase动态链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆