google-chrome-app

show notifications in chrome extension

五迷三道 提交于 2019-12-02 19:33:21
I'm writing my first chrome extension. In my chrome extension I have added an option in Right Click Context menu. chrome.contextMenus.create({ "id": "MyExntesion", "title": "My Extension", "type": "normal", "contexts": ["image"], "onclick": this.handleClick }); In my handleClick method, I want to show a notification. This notification should pop out in top right corner of the browser window which just confirms that user has clicked on the context menu. How do I do that? I did some research but didn't find anything useful. https://developer.chrome.com/extensions/notifications this talkes about

Chrome Rich Notifications for Extensions Only?

▼魔方 西西 提交于 2019-12-02 19:06:29
问题 I have a page that I would like to enhance by using Chrome's Rich Notifications. The pages I've read however, seem to imply that this API is only available to Chrome extensions. Is this the case? I would love to take advantage of the API, but I don't want to invest the time in converting my web application into a Chrome extension unless absolutely necessary. Thanks! 回答1: I does seem that without writing an extension for your webapp, or converting your webapp into a full (packaged) Chrome App,

chrome.hid.send fails on second use

為{幸葍}努か 提交于 2019-12-02 09:25:29
问题 Something about my use of chrome.hid.send seems to be leaving the bus in a bad state. I consistently can NOT get my second usage of the API call to work. Sometimes, it will also fail on the first usage. WITH THE EXACT SAME CODE, I can come back and try a while later (maybe 10min) and the first send will work. The device I'm working with does not return a response to all messages sent to it. The test message for example, is just a dummy message that is ignored by the device. I've tested this

Standalone chrome applications

大城市里の小女人 提交于 2019-12-02 08:27:52
Currently I am exploring the possibilities and features of Google Chrome apps. As I see to run chrome apps we need to distribute them through chrome App Store. Could we develop a application as a chrome app, which will not need to release to general public or for a limited audience? Is there anyway that we could package it to native OS executable like .exe in windows or .app in MacOS. So for users who doesn't have chrome installed will also can without any issue. Or at least could we distribute without submitting it to the App Store. Also I am wondering whether we can run another application

Can't fit file encoding when working with Chrome File System API

笑着哭i 提交于 2019-12-02 08:00:49
问题 I need to read a file which contains a group of symbols moved 65 in ASCII table. It means, for each symbol I am meant to do: String.fromCharCode('¢'.charCodeAt(0)-65) // returns 'a' But it is not working at all. I have asked friends of mine to do the test using Python inputting the same file and they got the correct result. When I try to do the same work with Chrome File System it does not work at all. I can't get back the expected symbols. I think it is a problem with my encoding/charset

Publishing more then one chrome extension as a single item in the Google store

江枫思渺然 提交于 2019-12-02 07:21:11
Chrome extensions and chrome apps have APIs I need to implement some functionality, and I can't do it with extension only or app only or with native code. So I made an extension and an app and made them to communicate each other via messages. Everything works fine, but now I have to publish it and here's the issue: my app is useless without my extension and extension won't work without an app. I'm afraid, that if I will publish this items separately, people will be scared if I'll suggest them to install an additional app/extension after they installed one of described items. Is there any way

Publishing more then one chrome extension as a single item in the Google store

时光怂恿深爱的人放手 提交于 2019-12-02 07:11:47
问题 Chrome extensions and chrome apps have APIs I need to implement some functionality, and I can't do it with extension only or app only or with native code. So I made an extension and an app and made them to communicate each other via messages. Everything works fine, but now I have to publish it and here's the issue: my app is useless without my extension and extension won't work without an app. I'm afraid, that if I will publish this items separately, people will be scared if I'll suggest them

Can we retrieve our machine serial number in our chrome extension?

流过昼夜 提交于 2019-12-02 07:03:05
Can we retrieve our machine serial number in our chrome extension? For example I can get the serial number in windows by executing following command in the shell wmic bios get serialnumber How can I fetch this serial number in my chrome extension? sowbug No. Chrome extensions are designed to protect user privacy to the greatest practical extent, and one component of user privacy is controlling the ability of code to "fingerprint" the user. Read the EFF's discussion of fingerprinting for more. I didn't mark your question as a duplicate, but the same answer applies to this question . 来源: https:/

Getting a Chrome app window to open at the bottom right of screen

為{幸葍}努か 提交于 2019-12-02 06:40:34
问题 I would like my Chrome app to open so it's touching the task bar and just offset from the right of the screen. My current code: chrome.app.runtime.onLaunched.addListener(function() { chrome.app.window.create('window.html', { 'bounds': { 'width': 300, 'height': 325 }, 'resizable': false, frame: 'none' }); }); 回答1: If you're okay with setting the outer bounds, that is, the full window size (and the content is potentially smaller), then it's simple: chrome.app.runtime.onLaunched.addListener

Chrome packaged application - downloading file from Webview

▼魔方 西西 提交于 2019-12-02 04:33:24
I am working on getting an existing Ajax style web application functional as a Chrome packaged app. The Ajax app is running in a Webview inside the packaged app and is mostly working great. The Ajax app allows users to upload documents using standard HTML 5 upload and drag/drop. Uploads work fine but downloads are not working . This is a simplified sample of the logic in the Ajax app. It uses Javascript to handle the click event, performs some logic, and then eventually triggers the download by setting the location of a hidden IFrame. <html> <head> <script type="text/javascript"> function