2014-09-18 21 views
7

我試圖使inline installs,而是繼續出現以下錯誤如何將驗證的網站指定給Chrome應用程序?

Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites 

我通過這兩個名稱標籤和.html文件驗證我的測試網站的所有權。這個測試網站是否也屬於我的其他電子郵件(用於分析)?這一切都在加那利進行測試,我在那裏用工作電子郵件登錄。

在開發人員儀表板中,我將顯示名稱更改爲我驗證的網站(例如www.example.com)。我也啓用了複選框This item uses inline install.

目前還不清楚我如何將我自己的網站與我在Chrome網上商店發佈的應用相關聯。

看來我需要指定清單文件中我自己的站點?

在我www.mydomain.com/testfile.html:

<!DOCTYPE html> 
<html lang="en"> 
    <head> 
    <title>blu</title> 
    <meta charset="UTF-8" /> 
    <link rel="shortcut icon" href="./img/favicon.png"> 

    <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/myAppIdNumber"> 
    </head> 
    <body> 
    <div style="width: 600px; margin: 40px auto;"> 
     <h1> 
     Example Install Page 
     </h1> 

     <p> 
     You can initiate app and extension installations "inline" from your site. These apps and extensions are still hosted in the <a href="https://chrome.google.com/webstore/category/apps">Chrome Web Store</a>, but users no longer have to leave your site to install them. 
     </p> 

     <button onclick="chrome.webstore.install(undefined, undefined, function(message) { console.log(message); });" id="install-button"> 
     Add to Chrome 
     </button> 

     <script> 
     if (chrome.app.isInstalled) { 
      document.getElementById('install-button').style.display = 'none'; 
     } 
     </script> 
    </div> 
    </body> 
</html> 
+0

當你說「我的測試驗證網站所有權」,那樣做的方式描述上此頁面:https://support.google.com/webmasters/answer/34592?hl = zh_CN – 2014-09-18 20:15:23

回答

9

這不是您的顯示名稱。

您需要:

  1. 轉到Webmaster Tools
  2. Add the site到您的網站。
  3. 獲取並在您的網站中嵌入驗證碼。
  4. 在網站站長工具中完成驗證。
  5. 轉到您的Developer Dashboard(必須在同一個Google帳戶下)並編輯您的網上應用店項目。
  6. 選擇你的網站「驗證,這是你自己的網站的正式項目:」
+2

啊,我沒有看到我必須通過開發人員儀表板編輯應用程序部署配置來添加站點。 – tarabyte 2014-09-18 21:23:25

+0

我認爲這份清單是不完整的。我覺得我做了第1步到第5步,第6步中仍然有一個空的列表。 – Redsandro 2015-06-15 10:05:30

+0

@Redsandro你確定你完成了驗證嗎?再次訪問網站管理員工具。 – Xan 2015-06-15 10:08:39

相關問題