Can a Chrome App launch a window with a Chrome Extension active? - javascript

I have written a Chrome extension and a Chrome packaged app. The extension uses the chrome.webRequest.onAuthRequired extension API. I've installed this extension in Chrome.
When I create a window in the Chrome App with chrome.app.window.create, the extension is not active.
How can I launch a window from my Chrome App in which the extension is active?
Ideally, I'd like to be able to use the chrome.webRequest API in my app, but I believe that is not possible.
Also, I understand that communication between a Chrome App and Chrome Extension is possible, (as in this this question), but I really hope I won't have to use message passing, and I don't know if that would even work as I'm not sure I could get the app to recognize when authorization was being requested.
Any thoughts would be appreciated. Thanks!

Related

Expose object/methods from chrome extention to WebPage

I'm building a chrome extension with ReactJs. I understood how content-script and background script works but, I'm not able to "share" an object/methods between the chrome extension (popup) and the current web page.
For example:
MetaMask inject a global web3 object, every page can use it and trigger the pop-up chrome extension.
Any idea?

IPSec VPN Client in Java Script using Chrome's "networkingPrivate" API

I want to add VPN client support to an existing chrome extension. I noticed that chrome has an API named 'networkingPrivate' for many network configurations. I kick started with a java script that calls some of the methods provided by networkingPrivate API. But, I'm facing chrome.networkingPrivate 'undefined' error. Any reference on how to use the API in a chrome extension would be of great help!
Chrome OS only, kiosk apps only (not extensions), dev channel only, and it is being renamed.
https://developer.chrome.com/apps/networking_onc
You probably want chrome.vpnProvider instead anyway, but that's still Chrome OS only.

Problems with Chrome in “--allow-file-access-from-files” mode

I'm trying to access a file on a shared drive from my application in Chrome. I know there is the --allow-file-access-from-files flag, and I've tried this to no avail. Here are the links I've tried on stackoverflow:
Can Google Chrome open local links?
How to launch html using Chrome at “--allow-file-access-from-files” mode?
I can't get “--allow-file-access-from-files” or the LocalLinks Chrome extension to work. Is there another setting I have to change? Has this been disabled? I'm running Chrome version 51.0.2704.106 if that makes a difference.

Chrome Application - Interract with a tab [duplicate]

I need to combine functionality available only in a Chrome packaged app (access to syncFileSystem) and functionality available only in a Chrome extension (injecting a script into a 3rd party website).
It seems that neither a packaged app nor an extension can achieve both these things, so I'm now considering trying to achieve what I'm after with a separate packaged app and extension communicating.
I see that Chrome's documentation explains how two extensions can communicate via chrome.runtime.onMessageExternal.addListener and chrome.runtime.sendMessage, but nothing about packaged apps and extensions communicating.
Does anyone know if this is allowed? Is there any documentation, or a working example out there?
Yes, that is possible. The code sample in the documentation you linked works for any combination of app and extension.
The extension documentation for chrome.runtime.sendMessage says:
Sends a single message to onMessage event listeners within the extension (or another extension/app).
Messaging works the same in both extensions and apps, and they seem to be fully compatible; simply use the ID for the destination extension or app. If you look at the docs for the app version of chrome.runtime.sendMessage, you'll see that it is identical to the extension version.

Chrome extension published on chrome web store does not work in Chrome book

I have developed an Chrome installable app as an extension in Google Chrome and published it on the Chrome Web store.
The app is developed using Html5, AngularJS and Ionic framework . It works well as an extension but does not work on Chrome OS.
Can you please let me know if i am missing something or do i need to do any extra coding for the chrome installable app(extension) to work on a Chrome OS.
A Chrome app and a Chrome extension are different things. Check out this article. A general explanation is that extensions are part of your Chrome browser, hence having fewer UI elements, while a Chrome app is a standalone app that can be independent from your browser (still runs on Chrome though). I don't think it being on a Chromebook makes a difference here.

Categories