I need to open a newtab ( that point to a link that show how to use my extension ) after installing the extension. How can I do that ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can have the background page check for a
hasSeenIntrokey in local storage on page load, which happens each time the browser loads, and when the browser is installed. If it’s there, the user has seen the intro interstitial, and if not, show them the page (usingchrome.tabs.create) then set the key.Somewhere in your background.html:
You could extend this to show an intro for each new major version/feature in the extension, by not only checking the presence/absence of the key in local storage, but the value as well (e.g., last-seen feature page).
Be careful with this though, it may get annoying to show a page every time the extension updates itself.