不兼容 chrome 个应用
Not compatible chrome app
我有一个非常简单的 chrome 应用程序:
清单:
{
"manifest_version": 2,
"name": "App Name",
"description": "Short description",
"version": "0.4",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"icons": {
"48": "/images/logo48.png",
"64": "/images/logo64.png",
"128": "/images/logo128.png",
"256": "/images/logo256.png"
}
}
background.js:
chrome.app.runtime.onLaunched.addListener(function() {
window.open("https://google.com/");
});
此计算机不支持此应用程序。安装已被禁用。检测到以下问题:
此应用仅在 Chrome OS
上运行
有谁知道我做错了什么?我只是想让我的应用程序充当网站的快捷方式,仅此而已。
你可以参考这个Transitioning from Chrome apps on Windows, Mac, and Linux documentation. Be noted that Chrome packaged and hosted apps will be discontinued on Windows, Mac, and Linux over the course of now and early 2018. It is also stated in this Chromium Blog。
Starting in late 2016, newly-published Chrome apps will only be available to users on Chrome OS. Existing Chrome apps will remain accessible on all platforms, and developers can continue to update them.
In the second half of 2017, the Chrome Web Store will no longer show Chrome apps on Windows, Mac, and Linux, but will continue to surface extensions and themes. In early 2018, users on these platforms will no longer be able to load Chrome apps.
希望对您有所帮助!
我有一个非常简单的 chrome 应用程序:
清单:
{
"manifest_version": 2,
"name": "App Name",
"description": "Short description",
"version": "0.4",
"app": {
"background": {
"scripts": ["background.js"]
}
},
"icons": {
"48": "/images/logo48.png",
"64": "/images/logo64.png",
"128": "/images/logo128.png",
"256": "/images/logo256.png"
}
}
background.js:
chrome.app.runtime.onLaunched.addListener(function() {
window.open("https://google.com/");
});
此计算机不支持此应用程序。安装已被禁用。检测到以下问题: 此应用仅在 Chrome OS
上运行你可以参考这个Transitioning from Chrome apps on Windows, Mac, and Linux documentation. Be noted that Chrome packaged and hosted apps will be discontinued on Windows, Mac, and Linux over the course of now and early 2018. It is also stated in this Chromium Blog。
Starting in late 2016, newly-published Chrome apps will only be available to users on Chrome OS. Existing Chrome apps will remain accessible on all platforms, and developers can continue to update them. In the second half of 2017, the Chrome Web Store will no longer show Chrome apps on Windows, Mac, and Linux, but will continue to surface extensions and themes. In early 2018, users on these platforms will no longer be able to load Chrome apps.
希望对您有所帮助!