How to use chrome.alarms for Google Chrome extension

前端 未结 2 1091
长情又很酷
长情又很酷 2020-12-13 16:10

manifest.json

{
    \"manifest_version\": 2,
    \"name\": \"App name\",
    \"description\": \"Description goes here\",
    \"version\": \"         


        
2条回答
  •  别那么骄傲
    2020-12-13 17:09

    You didn't create any alarm, so no onAlarm event will be fired.

    Create an alarm with chrome.alarms.create. Note: you should do it in the chrome.runtime.onInstalled event.

提交回复
热议问题