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属性,但它似乎只依赖我的应用程序意图过滤器。因此,我需要调整它们以便仅过滤我想要的页面。我怎样才能做到这一点?

谢谢

回答

相关问题