我正面临着一个与深度链接的具体问题。我的意思是,对于universal Link,我有这样的东西
https://www.website.com/LANGUAGE/dashboard/profile这意味着语言可以是/en/ /fr/ /de/ /it/ /es/的甚至更多。
问题是我在我的清单中尝试:
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="www.website.com"
android:scheme="https"
android:path="/*/dashboard/profile"/>
</intent-filter>但是*不工作。有什么解决办法吗?
发布于 2020-01-27 18:37:03
实际上,通过这样做是可能的:
<data
android:host="www.website.com"
android:scheme="https"
android:path="/.*dashboard/profile"/>它将适用于所有语言
https://www.website.com/en/dashboard/profile
https://www.website.com/fr/dashboard/profile
https://www.website.com/de/dashboard/profile
https://www.website.com/it/dashboard/profile
https://www.website.com/es/dashboard/profile发布于 2020-01-21 19:23:18
据我所知,Android不支持深度链接的多语言功能。因此,您需要为每种语言提供唯一的URL路径,如下所示:
<data
android:host="www.website.com"
android:scheme="https"
android:path="/en/dashboard/profile"/>https://stackoverflow.com/questions/59839810
复制相似问题