In my manifest I have:
"app":
{
"background":
{
"scripts":
[
"main.js"
],
"persistent": true
}
}
but it still shows Inspect views: _generated_background_page.html (Inactive)
and when I look at the console, it is inactive.
And I also have a setInterval
running every 10 seconds. Yet, it still goes inactive!
What do I need to do to keep it from going inactive?
Additional Info:
I added an alarm that fires every minute and this appears to wake my app up. (Need to do more testing) But it means waiting a minute after Chrome startup before the app runs.
setInterval
and then usessendMessage( otherAppId, ... )
to notify other apps about what the web service says. But if it's inactive, it won't be checking with the web service andsendMessage()
never gets called.