google-chrome-app

Proper way to listen as TCP server in Chrome extension

回眸只為那壹抹淺笑 提交于 2019-12-04 04:27:19
I want to create a TCP server and listen on it. I need access to the tab content, so I need a chrome extension. Sadly, only chrome apps can create TCP servers. Is it a valid/good concept to create a TCP server in a chrome app and let the app communicate with an extension (is this even possible?)? If not, what would be my alternatives? The only idea I have is to change from server model to client model and let the extension connect to an external server. This solution would be poor in my situation, so I try to avoid it as best as I can. What I want to achieve is that I can build a chrome

Setting “unsafe” headers in packaged app XHR

ぃ、小莉子 提交于 2019-12-04 04:00:41
问题 I need to modify the User-Agent header in an XHR request in my packaged app. When I do so, I get the error: Refused to set unsafe header "User-Agent" My app already has full socket access, so I could do it that way. But that would be really, really annoying. It would be super nice if I were allowed to set this header in packaged apps that already have raw socket access. Maybe there is some other API or permission that I'm not aware of? webRequest doesn't seem to be relevant here. 回答1: It

Running Ionic at cca throw “Cannot read property 'Keyboard' of undefined” @ app.js:14

坚强是说给别人听的谎言 提交于 2019-12-04 03:27:09
问题 The following is what I did to setup Ionic in Chrome App for Mobile: Created a Chrome App for Mobile project - cca create projectname Created an Ionic project ionic start projectname_ionic Deleted all of the files from the Chrome App www folder except the manifest files and background.js - find projectname/www/* -not -name 'manifest*' | grep -v 'background.js' | xargs rm -rf Copied the content of the Ionic project www folder to the Chrome App www folder - cp -r projectname_ionic/www/*

Google chrome extension : is it possible to get console output (js errors, console.log or etc)

戏子无情 提交于 2019-12-04 02:32:28
I am developing chrome extension, and the thing that i really need is to get console output as object. Is it possible to get any of that in chrome extension popup.html/popup.js or somewhere ? I have tab object, can i get somehow that particular tabs console, or error output from the inspector/devtool in chrome console as object in code? Google Chrome Console has no possibility (upon now) to get the Output/Contents of the Console. In your popup.js file you can just use console.log("stuff") then right click on your extension and go to the debugger or inspect_element -> console, to see the output

How to show images in other domains / Chrome Packaged Apps

时光怂恿深爱的人放手 提交于 2019-12-03 22:14:18
I have a JSON which returns a list of URLs of images to access the JSON that is already placed in a field in this domain whitelist manifest.json, however when I try to view the pictures it complains that it can not access the images. 1 - How to Perm can display images that are not within the package App 2 - How can I download the images to download the APP and then display to this second question I used the RAL, a lib trial google and it worked, however I could not make a test using this publication lib he claims an error, follow the link to the image lib and complaining about the error: lib:

SSL Client Authentication with Certificate in Chrome App

删除回忆录丶 提交于 2019-12-03 20:10:00
I'm writing a Chrome app that needs to have an SSL socket with client authentication. I have done this before in Java with the same set of trust store and key store. Here is what I have done on Chrome (Mac and Chromebook): Add client key (p12) and CA (one root CA, one intermediate CA) to system. In Chrome app, try both the legacy socket API and the new sockets.tcp API. Always receiving error ERR_SSL_CLIENT_AUTH_CERT_NEEDED . But I think I already have the correct client cert and CA in the system. Code for legacy socket API: chrome.socket.create('tcp',{},function(createInfo){ mySocketId =

How do you display a filesystem URL in a Chrome app webview?

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:06:14
I have a Chrome packaged app that requires me to be able to view saved, offlined web pages. These pages are downloaded from my server when the user is online and saved to the HTML5 filesystem so that they can be viewed offline. This Chrome bug ticket seems to indicate that what I want to do is possible: https://code.google.com/p/chromium/issues/detail?id=343382 Based on the Chrome app 'webview' docs ( https://developer.chrome.com/apps/tags/webview ), this is what I came up with. In my manifest: "permissions": [ { "fileSystem": ["write"] }, "storage", "unlimitedStorage", "webview" ], "webview":

Postman chrome extension with array of hashes as value

三世轮回 提交于 2019-12-03 15:35:29
I have a data that looks like this: I took a look at this post Array value on postman chrome extension , so I know how to use postman to send post request with parameters from age to skillset , my problem is the work_experience , it's an array of hashes, I want to input the work_experience in postman, from which you can see is an array of hashes. So is this possible? And if you know a better chrome extension that can do this, feel free to answer or comment P.S. Although this is should be obvious, but for the sake of the person who voted to close this for being unclear , my purpose is to

Debugging new Chrome packaged apps

蓝咒 提交于 2019-12-03 15:26:09
问题 I'm playing with new-style packaged apps in Chrome 24, and I don't see any way to bring up Developer Tools to do debugging. What's the recommended strategy for debugging? 回答1: I've been able to right click the content area and inspect an element to get the dev tools to come up. 回答2: go to here chrome://inspect/ find the page you want 回答3: Starting on Chrome 24, you can right click and inspect your page or inspect the background page. If your app doesn't have any open window to right click,

How can I make a chrome packaged app which runs in fullscreen at startup?

◇◆丶佛笑我妖孽 提交于 2019-12-03 12:48:17
Currently it seems that the fullscreen ability can only be activated from a user action (mouse/keyboard event). Is there a way to circumvent this? Now, you can just add the state:"fullscreen" property on your main .js: chrome.app.runtime.onLaunched.addListener( function() { chrome.app.window.create('index.html', { state: "fullscreen", } ); } ); Make sure you don't add resizable: false or bounds properties, and you add a "fullscreen" permision on the manifest.json . { ... "permissions": [ ... "fullscreen" ] } You can use the HTML5 Fullscreen API, which requires a user action: button