[英]Is it possible to link from 2 different domains to the same app using dynamic links?
I have 2 domains and one single app but would link from both domains to app-pages via Deep-Links. 我有2个域和一个应用程序,但会通过深度链接从这两个域链接到应用程序页面。
Is it possible to link from eg both static.domain.com and content.domain.com into the same app with dynamic links? 是否可以通过动态链接从static.domain.com和content.domain.com链接到同一应用程序? Thanks in advance :)
提前致谢 :)
Sure, you could add many domain as many as you want. 当然,您可以根据需要添加多个域。 Just add your domains inside manifest.
只需在清单中添加您的域即可。
<data android:host="static.domain.com" android:scheme="http"/>
<data android:host="static.domain.com" android:scheme="https"/>
<data android:host="content.domain.com" android:scheme="http"/>
<data android:host="content.domain.com" android:scheme="https"/>
So, the code look like this: 因此,代码如下所示:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="static.domain.com" android:scheme="http"/>
<data android:host="static.domain.com" android:scheme="https"/>
<data android:host="content.domain.com" android:scheme="http"/>
<data android:host="content.domain.com" android:scheme="https"/>
</intent-filter>
Do not forget to verify your domains by adding assetlinks.json inside .well-known folder. 不要忘记通过在.well-known文件夹中添加assetlinks.json来验证您的域。 Ensure that is accessible using
https://static.domain.com/.wll-known/assetlinks.json
and https://content.domain.com.com/.wll-known/assetlinks.json
. 确保使用
https://static.domain.com/.wll-known/assetlinks.json
和https://content.domain.com.com/.wll-known/assetlinks.json
可以访问。 Should using https for verifying your domain. 应该使用https来验证您的域。
Cheers 干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.