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。
任何幫助/提示如何解決這個問題?或者只有將前綴離開並檢查應用程序是否匹配?