【发布时间】:2011-11-14 09:12:26
【问题描述】:
我正在制作一个警报 chrome 扩展,我想在指定时间之前发出通知,我不希望用户一直保持扩展窗口打开,我从here 阅读了有关背景的信息。
我像这样在 manifest.json 中添加 background_page 和后台权限
{
"name": "Alert extention",
"version": "2.0",
"description": "Personal alert.",
"background_page": "Alert.html",
"browser_action": {
"default_icon": "img/clock.png",
"popup": "Alert.html"
},
"permissions": [
"notifications","background"
]
}
但扩展程序关闭时没有通知发生。我为扩展程序重新加载第一个通知,但其他人没有。
【问题讨论】:
标签: google-chrome background google-chrome-extension