我目前正在为我的应用添加深度链接支持.
我们的web应用程序是使用URL的片段部分(例如example.com/#/nested/page
)路由的,我们希望应用程序只打开特定的路由.
类似于这样:
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="example.com" android:pathAdvancedPattern="#/whitelisted/.+" />
</intent-filter>
我希望像https://example.com/#whitelisted/route
这样的URL会"通过",而https://example.com/#not/allowed/route
不会.
有没有一种方法可以实现这一点,我已经错过了,或者它只是不支持Android上的深度链接?