문제

Is it currently possible to create a chrome web app that can run in the background, even when the chrome process isn't running and pop up notifications to the users desktop? Say for an email app it gives notification when a new email arrives.

도움이 되었습니까?

해결책

That sounds more like an extension... There are already extensions doing exactly that!

다른 팁

As of Chrome 10, it's possible to create installable web apps that do this (both for hosted apps as well as packaged apps). You can find documentation and sample code here.

If you are looking for how to run scripts in the background just put this into your manifest file:

"app": {
    "background": {
        "scripts": ["background.js"]
    }
},
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top