chrome extension inspect view after a while always inactive . why ?

1,991 views
Skip to first unread message

St Priyanka

unread,
Oct 6, 2015, 5:04:16 AM10/6/15
to Chromium-extensions
Hi 
In my chrome extension when the inspect view is in "Inactive" mood it  and user click on my extension icon to popup information it never shows anything. i have to reload the page to make the action active mood or i have to click on the console page all the time to make it active.
How can i make i action in an active mood all the time?
Any suggestion / solution ?
Thanks in advance

NB: i have attached and image showing an chrome extension inactive. i have the same issue .
2.PNG

PhistucK

unread,
Oct 6, 2015, 7:49:04 AM10/6/15
to St Priyanka, Chromium-extensions
Generally, in order to make it always active, you can specify persistent: true in "background": {"scripts": [...], "persistent": true}. However, this is not recommended, due to memory and performance implications.
It sounds like your popup view needs the event page (an event page is a background page that is not persistent").
If it does, how do you acquire your background page?
If you are using chrome.extension.getBackgroundPage() or similar, you should switch to chrome.runtime.getBackgroundPage(function (backgroundPage) { ... }) instead.
Doing so will make your background page active whenever you need it.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/8ba1110b-7d23-48d7-adb5-0a2a050db558%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Reply all
Reply to author
Forward
0 new messages