如何将已验证的网站指定给Chrome应用程序?

9
我正在尝试启用内联安装,但仍然遇到以下错误。
Inline installs can only be initiated for Chrome Web Store items that have one or more verified sites

我已经通过名称标签和 .html 文件验证了我的测试站点的所有权。但是,这个测试站点也是由我其他邮箱(用于分析)拥有的,这会是问题吗?这些都在 Canary 进行测试,在其中我使用我的工作邮箱登录。
在开发人员仪表板中,我已将我的显示名称更改为已验证的站点(例如 www.example.com)。我还启用了 此项使用内联安装 复选框。
目前不清楚如何将我拥有的站点与我在 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>

当你说“验证我测试站点的所有权”时,你是按照此页面上描述的方式进行的吗:https://support.google.com/webmasters/answer/34592?hl=en - Marc Rochkind
1个回答

12

2
啊,我没注意到我必须通过开发人员控制台编辑应用程序部署配置来添加一个网站。 - tarabyte
我觉得这个列表不完整。我感觉我已经完成了步骤1到5,但在第6步仍然有一个空列表。 - Redsandro
@Redsandro 你确定已经完成验证了吗?请再次访问站长工具。 - Xan

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接