I have a Chrome app that I need to be just one instance. If they click the app icon again, it should go to the already opened instance instead of opening another instance. How would I do this?
You may have noticed that Google Chrome will often have more than one process open, even if you only have one tab open. This occurs because Google Chrome deliberately separates the browser, the rendering engine, and the plugins from each other by running them in separate processes.
Chrome opening two tabs often happens when you visit a site that uses pop-up advertising. To stop this you just have to install an ad blocker in chrome which you can do by checking the Chrome Webstore. Another reason can be that you clicked on the icon repeatedly in which case you jut need to avoid doing that.
Go to Allow/block mode. Click Edit. For Play Store, choose what type of apps and extensions you want to let users install. Note: Only the primary account user can install apps and extensions from the Google Play store.
The secret to why Task Manager shows so many processes for Chrome is in how this browser works. Google Chrome creates three types of processes: tabs (for every tab you have open), renderers, and plug-ins.
Create the window with an id
and as a singleton
. See the chrome.app.window documentation.
E.G. modify the hello world sample to create the window with
chrome.app.window.create('index.html', {
id: "", // Even an empty string is sufficient.
singleton: true,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With