installation - 如何为Chrome应用指定经过验证的网站?

标签 installation google-chrome-app

我正在尝试启用inline installs,但继续出现以下错误

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

我已经通过名称标签和.html文件验证了我的测试网站的所有权。这个测试网站也归我的其他电子邮件所有(用于分析),是否有问题?这一切都在Canary(我已通过工作电子邮件登录)中进行了测试。

在“开发人员信息中心”中,我已将显示名称更改为经过验证的网站(例如www.example.com)。我还启用了This item uses inline install.复选框

目前尚不清楚我如何将自己的网站与我在chrome网络商店上发布的应用程序相关联。

似乎我需要在 list 文件中指定我拥有的网站?

在我的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>

最佳答案

与您的显示名称无关。

你需要:

  • 转到Webmaster Tools
  • Add the site到您的网站。
  • 获取验证代码并将其嵌入到您的网站中。
  • 在网站站长工具中完成验证。
  • 转到您的Developer Dashboard(必须使用相同的Google帐户)并编辑您的网上应用店商品。
  • 在“确认这是您拥有的网站的官方商品:”中选择您的网站:
  • 关于installation - 如何为Chrome应用指定经过验证的网站?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25920728/

    相关文章:

    linux - 在 linux 上卸载

    ios - 在 iOS 上的 Chrome 中禁用第三方 cookie

    javascript - 批量传输 "Transfer failed."

    installation - 是否存在通用的跨平台安装程序?

    android - 安装每个版本或最新版本就足够了?

    php Composer windows安装奇怪的目录错误

    android - Cygwin 设置超过 100%

    javascript - Chrome 软件包应用程序 : opening modal windows or use bootstrap?

    javascript - 是否可以让 Chrome 应用通知发出声音?

    javascript - 使用 Chrome 应用 API 获取文件