簡體   English   中英

通過移動應用程序進行應用索引

[英]App Indexing through mobile application

我已使用此 Firebase 教程 URL < https://firebase.google.com/docs/app-indexing/android/public-content > 將 App Indexing 集成到我的 Android 和 iOS 應用程序中。

我查看了提供的示例應用程序,它運行良好,但是當我將它集成到我的應用程序中時,但在我的 AndroidManifest.xml 中,我對以下代碼片段感到困惑:

 <data android:scheme="http"
                android:host="recipe-app.com"
                android:pathPrefix="/recipe" />

我的問題是:

  • 什么是 recipe-app.com 和 pathPrefix,我需要做什么才能使 App Indexing 在我的應用程序中工作?
  • 除了 Firebase 官方鏈接之外,是否還有在 Android 中集成 App Indexing 的描述性教程?
  • 我應該將數字資產鏈接文件放在服務器的什么位置?
 <data android:scheme="http"
                android:host="recipe-app.com"
                android:pathPrefix="/recipe" />

這就是您聲明您的應用程序處理某些 URL 的方式。 這個想法是 App Indexing 建立在應用程序鏈接之上,這是讓您的應用程序處理常規 Web URL 的一種方式。

因此,如果您的應用程序是“MyApp”並且您擁有“myapp.com”,則您需要將android:host值更改為“myapp.com”。 該路徑適用於您的應用程序僅處理您網站上的路徑子集的情況。 舉例來說,如果你有下論壇/forum ,並在定價計算器/calculator和您的應用程序只實現了計算器,你可以使用:

 <data android:scheme="http"
                android:host="myapp.com"
                android:pathPrefix="/calculator" />

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM