0
我需要使用intent过滤器过滤URL,这指向了一个appengine web界面,所以如果用户安装了它,我可以在相应的应用程序中打开它们。Android Intent过滤器URL路径包括#
URL是这样的:http://my-domain.de/#/routes/<id>
其中<id>
是一个长。问题是,机器人似乎不喜欢在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="http"
android:host="my-domain.de"
android:pathPrefix="/#/routes/"/>
</intent-filter>
但他其实并不像一个网址作出反应。如果我删除了#
并使其成为android:pathPrefix="/routes/"
它可以在android中使用,但这不是appspot的URL。
任何帮助/提示如何解决这个问题?或者只有将前缀离开并检查应用程序是否匹配?