google-chrome-app

How to change chrome packaged app id Or Why do we need key field in the manifest.json?

我是研究僧i 提交于 2019-12-17 02:07:12
问题 I'm developing packaged app for chrome store using one-time chrome wallet payments. For my app I need to check during the runtime if user bought the app or not to decide should it be demo functionality or full functionality. According to the chrome identity API documentation : to keep application ID constant, You need to copy the key in the installed manifest.json to your source manifest. I have 2 questions about this procedure: 1) under what condition the id of my application may change? I

Clear Pole Display text using chrome serial

痞子三分冷 提交于 2019-12-14 03:11:53
问题 I have created a chrome application to connect to a Pole Display through serial port, I have succeeded with writing to it, but every time I send a message, it concatenates it with the previous one, I can't find a way to clear the screen each time I send a new message ! Here's my code: var connectionId = -1; openPort("COM3"); function openPort(port){ var onOpen = function(connectionInfo) { if (!connectionInfo || connectionInfo.connectionId == -1) { return; } connectionId = connectionInfo

Saving files in a Chrome App

一曲冷凌霜 提交于 2019-12-14 02:38:29
问题 Summary Normally I could download a bunch of files, but Chrome Apps won't show the download shelf when a download occurs. What would be the best way of getting around this limitation of Chrome Apps? Ideas I could go about this by creating a zip file, but this would require the user to perform an extra step of unzipping the file. I'm able to silently download the files, and so I could display a prompt to the user when the file is downloaded, but this would require the user to manually search

Download external pdf files to chrome packaged app's file system

只谈情不闲聊 提交于 2019-12-14 02:17:52
问题 Is there any way to save pdf files from server to chrome packaged app? In my chrome packaged app, i have some thing like this, Download when user clicks on this hyper link, i should able download that pdf file into my chrome packaged app file system. 回答1: There's nothing special about downloading PDF files. Use XMLHttpRequest to download a file, and then use the file APIs to either write it to a sandboxed file, or to an external file whose FileEntry you get with chrome.fileSystem.chooseEntry

Chrome.system.cpu API Usage

笑着哭i 提交于 2019-12-14 00:36:47
问题 Is it possible to use the chrome.system.cpu api to get the current CPU load? I specifically can't figure out how to convert the returned numbers to a percent of the total current load. I found this, but not quite sure how to implement: "Callers can compute load fractions by making two calls, subtracting the times, and dividing by the difference in totalTime." https://developer.chrome.com/apps/system_cpu Answer : An example of getting CPU usage is here: https://github.com/beaufortfrancois/cog

alert doesn't work in packaged apps

笑着哭i 提交于 2019-12-13 19:03:41
问题 I'm studying webview in packaged apps of chrome and I'm studying browser sample from chrome. in browser.js file in onload function, I added alert("webview apps"); at the first row and the code didn't work anymore, when I deleted this row, it worked again. onload = function() { alert("webview app"); var webview = document.querySelector('webview'); doLayout(); ... } so does alert work on packaged apps? P/s: console.log also doesn't work, I saw the source code use it, but nothing is displayed on

Can anyone explain that what is the use of “match_about_blank” in chrome extension's manifest file?

此生再无相见时 提交于 2019-12-13 18:24:10
问题 I am new to chrome extensions but failed to know about the use of "match_about_blank" property in manifest file. Can anyone explain in easy words ? 回答1: Let me start by quoting the documentation of "match_about_blank": Whether to insert the content script on about:blank and about:srcdoc . Content scripts will only be injected on pages when their inherit URL is matched by one of the declared patterns in the matches field. The inherit URL is the URL of the document that created the frame or

How do I create a Chrome App effectively acting as a launch page in kiosk mode?

拟墨画扇 提交于 2019-12-13 18:17:51
问题 This is my first Chrome app creation attempt. Our school wants to create kiosk app for Chromebooks that will launch a webpage on our web server that is filled with shortcut links. This is mainly so young users like kindergarteners can bypass the login screen making the login screen is still available for older students. I spent a little bit of time on it yesterday and deployed it through the Google Apps management console, but the app does not display on our devices. I'm sure it's an issue

Are chrome apps code visible to the users?

谁说我不能喝 提交于 2019-12-13 16:28:07
问题 I was thinking about writing a chrome app in html5. This would be an app on the desktop for the user to use, independent of the internet. However, the concern is what if there are algorithms that I don't want the user to see or copy? I would just want to grant the user the ability to apply it. Is it impossible to hide the app code that you wouldn't want the user to copy? 回答1: No, it's not possible to hide your code. You can obfuscate and minimize it, but that is about it. If you have

“unlimitedStorage” permission to a <webview> inside a Chrome App

烂漫一生 提交于 2019-12-13 16:26:54
问题 I have a webview inside a Chrome Packaged App and the app has permissions for storage and unlimitedStorage. When I ask for the available storage space from the app It says 8 GB (that It is the whole space available in the device) but when I do it from the web app that the webview loads It says 600 MB aprox. How can I do to set unlimitedStorage space to the webview? 来源: https://stackoverflow.com/questions/47165546/unlimitedstorage-permission-to-a-webview-inside-a-chrome-app