![](/img/trans.png)
[英]Mapbox Android app - Can raster resources be uploaded through mobile application?
[英]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" />
我的問題是:
<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.