如何为Chrome应用指定经过验证的网站? [英] How to specify verified site to a chrome app?

查看:47
本文介绍了如何为Chrome应用指定经过验证的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试启用内联安装,但是继续出现以下错误

I'm trying to enable inline installs, but continue to get the following error

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

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

I've verified ownership of my test site via both a name tag and a .html file. Is it a problem that this test site is also owned by my other email (for analytics)? This is all being tested in Canary, where I'm signed in with a work email.

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

In the Developer Dashboard, I've changed my display name to be the site I verified (e.g. www.example.com). I've also enabled the checkbox for This item uses inline install.

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

It's not clear how I associate the site I own with the app I publish on the chrome web store.

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

It seems like I'd need to specify the site I own in the manifest file?

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

In my 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>

推荐答案

这与您的显示名称无关.

It's not about your display name.

您需要:

  1. 转到网站管理员工具.
  2. 将网站添加到您的网站.
  3. 获取验证码并将其嵌入到您的网站中.
  4. 在网站站长工具中完成验证.
  5. 转到您的开发人员信息中心(必须在同一Google帐户下)并进行修改您的网上商店商品.
  6. 确认这是您拥有的网站的官方商品:"中选择您的网站:
  1. Go to the Webmaster Tools.
  2. Add the site to your sites.
  3. Obtain and embed a verification code into your site.
  4. Complete verification in Webmaster Tools.
  5. Go to your Developer Dashboard (must be under the same Google account) and edit your Web Store item.
  6. Select your site in "Verify that this is an official item for a website you own:"

这篇关于如何为Chrome应用指定经过验证的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆