9882190bde
If all the application windows are closed (and not merely hidden), the background page will go inactive and there's nothing we can do to stop it. However, we can ask chrome to trigger an alarm once per minute, which will spin up the background page and check for new messages. This will effectively keep us alive as long as chrome has open windows or is running in the background, subject to chrome settings' Advanced -> System -> Continue running background apps
27 lines
473 B
JSON
27 lines
473 B
JSON
{
|
|
"manifest_version": 2,
|
|
|
|
"name": "Signal",
|
|
"description": "Private Messenger",
|
|
"version": "0.0.1",
|
|
"offline_enabled": false,
|
|
|
|
"permissions": [
|
|
"unlimitedStorage",
|
|
"notifications",
|
|
"fileSystem",
|
|
"alarms"
|
|
],
|
|
|
|
"icons": {
|
|
"16": "images/icon_16.png",
|
|
"48": "images/icon_48.png",
|
|
"128": "images/icon_128.png"
|
|
},
|
|
|
|
"app": {
|
|
"background": {
|
|
"page": "background.html"
|
|
}
|
|
}
|
|
}
|