【发布时间】:2017-04-05 14:28:10
【问题描述】:
我正在尝试实现 Android 应用链接。 url 链接到的网站是使用 Angular 开发的,因此所有 URL 中都有一个 #(完全是 #!)。
我找不到与 # 一起使用的好模式
<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:scheme="https"
android:host="www.mydomain.com"
android:pathPattern="/#!/vehicle/.*" />
</intent-filter>
此 pathPattern 与不带 # 的 url 完美配合,例如
所以我的问题是针对破折号的:-S
如果尝试过:
- /\#!/vehicle/.*
- /\\#!/vehicle/.*
- /.+/vehicle/.*
- /../vehicle/.*
- /*/vehicle/.*
- /%23!/vehicle/.*
还有其他我不记得了
提前感谢您的可能回答
【问题讨论】: