現在、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"
]
}