0

我一直在我的應用程序中實施谷歌應用程序索引,雖然它變得對我來說很難理解。 我創建了以下意圖過濾器在我的應用程序應用程序索引 - 如何不將我的所有網站映射到應用程序

 <intent-filter android:label="@string/app_name"> 
      <data android:scheme="android-app" 
       android:host="com.towers.mywebsite" /> 
      <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="www.mywebsite.com" /> 
      <data android:scheme="https" 
       android:host="www.mywebsite.com" /> 
     </intent-filter> 

我想抓住像www.mywebsite.com?parameter=123所有鏈接,但不喜歡www.mywebsite.com/somethingelse鏈接

通過上面的意圖過濾器,我的應用程序是可能的應用程序列表中打開所有喜歡www.mywebsite.com ...

的深層鏈接我的問題是:我在做對嗎?我該如何過濾意圖,以便不讓所有鏈接嘗試並打開tre應用程序?我認爲谷歌會選擇開放的應用程序或瀏覽器,通過檢查我的網站的哪些網頁有鏈接rel屬性,但它似乎只依賴我的應用程序意圖過濾器。因此,我需要調整它們以便僅過濾我想要的頁面。我怎樣才能做到這一點?

謝謝

回答

相關問題