2015-04-23 41 views
4

所以,我試圖實現應用索引,以允許谷歌搜索(在Chrome應用程序中)「打開應用程序」功能。App Indexing「Open in App」不起作用

我實現下面的章節從谷歌文檔https://developers.google.com/app-indexing/

  1. 中添加深層鏈接到您的應用程序

    <activity 
        android:name=".DeepLinkActivity"> 
        <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="dl.mysite.com" 
          android:pathPattern="/" /> <!-- Home page --> 
        </intent-filter> 
    </activity> 
    
  2. 連接您的應用程序

    我已經驗證和批准來自網站管理員和Play控制檯的網站。

  3. 中提供深層鏈接

    <link rel="alternate" href="android-app://com.MyApp.MyApp/http/dl.mysite.com/" /> 
    

我試過在https://developers.google.com/app-indexing/webmasters/test測試我的鏈接 「android-app://com.MyApp.MyApp/http/dl.mysite.com/」 和鏈接打開我的應用程序主頁。 但是,我的網站在谷歌搜索結果中(在Chrome應用程序中)沒有「在應用程序中打開」功能。

我想要這個「在應用程序中打開」功能。我會很感激任何幫助。

+0

您是否在網站管理員工具中收到任何應用索引錯誤? – moobot

+1

我已經構建了測試版。我只是把它移到了遊戲機的製作中,它工作起來了! – ArunL

+0

你的意思是「我的測試版本」? 我目前有同樣的問題,我找不到解決方案。 http://stackoverflow.com/questions/32948746/app-indexing-android-link-in-head-doesnt-work 也許你可以幫忙嗎? – iFoukis

回答

0

對類似問題的回答解決了這個問題。

App Indexing Android - "<link>" in "<head>" doesn't work

引述,「它會從谷歌搜索結果頁面只工作如果您的網站適當的索引並顯示在谷歌搜索結果中,檢查是否存在於谷歌的緩存內容的網站的網頁的源文件: http://webcache.googleusercontent.com/search?q=cache:yourwebsite.com

此外,如果Google Play開發者控制檯中的BETA TESTING中的apk可能需要將apk移至PRODUCTION。