目前,即使我正在等待来自 websocket 的数据,后台进程总是处于非活动状态。有没有办法绕过这个?该部门的文档完全不清楚(旧文档等)。这样做的“新”和正确方法是什么?
我的清单文件:
{
"name": "Media 5",
"manifest_version": 2,
"description": "Html5 media center app for Chrome",
"version": "0.1",
"app": {
"background": {
"persistent": true,
"scripts": ["background.js"]
}
},
"icons": { "16": "small_icon.png", "128": "big_icon.png" },
"sandbox": {
"pages": ["sandbox.html"]
},
"permissions": [
"unlimitedStorage",
"fullscreen",
"notifications",
"webview"
]
}