简体   繁体   English

是否可以使用动态链接将2个不同的域链接到同一应用?

[英]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.jsonhttps://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.

相关问题 是否可以使用来自电子邮件的通用链接(深层链接)启动 iOS 应用程序 - iOS - Is it possible to launch an iOS app using Universal Links (deep link) from Email - iOS 是否可以从我的应用程序内的推送通知中打开链接,而无需将链接存储在应用程序中? - Is it possible to open links from push notifications inside my app without the need to store the link previously inside the app? 使用应用链接方法从我的网站到我的移动应用的深层链接 - Deep link to my Mobile App from my Website Using App Links approach iOS/Swift:如何通过在控制台 Firebase 上仅配置一个链接来获取从应用商店安装的动态深层链接 WITH 参数? - iOS/Swift: How to get dynamic deep links that survive the install from app store WITH parameters by configuring only one link on console Firebase? 如何使用Android版Firebase动态链接接收全局链接 - How to receive global link using Firebase Dynamic Links for Android Firebase 动态链接不适用于 iOS 中同一项目中的不同目标 - Firebase Dynamic-Links is not working for different target in same project in iOS 在不同的 Android 应用程序行为上具有相同主机名的应用程序链接 - App links with same host name on different android apps behaviour 从iOS创建分支链接,显示与仪表板链接相同的值 - Creating branch links from iOS that shows the same values as dashboard link 是否可以实现从网站到本机应用程序的深层链接? - Is it possible to implement deep links from website to native app? Flutter firebase 动态链接在应用程序上处理 url 时使用自定义参数自定义链接 - Flutter firebase dynamic links customise link with custom params when handling url on the app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM