我正在尝试启用内联安装,但仍然遇到以下错误。
我已经通过名称标签和 .html 文件验证了我的测试站点的所有权。但是,这个测试站点也是由我其他邮箱(用于分析)拥有的,这会是问题吗?这些都在 Canary 进行测试,在其中我使用我的工作邮箱登录。
在开发人员仪表板中,我已将我的显示名称更改为已验证的站点(例如 www.example.com)。我还启用了
目前不清楚如何将我拥有的站点与我在 Chrome 网上应用店中发布的应用程序关联起来。
似乎我需要在清单文件中指定我拥有的站点?
在我的 www.mydomain.com/testfile.html 中:
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>