google-chrome-app

Suppress “Failed to load resource: net::ERR_FILE_NOT_FOUND” in Chrome Packaged App

故事扮演 提交于 2020-01-11 09:24:26
问题 I get the message "Failed to load resource: net::ERR_FILE_NOT_FOUND" in the console when a webview in a Chrome Packaged App tries to load a non-existent local file. This is expected, because the program is supposed to check a couple of different location, starting with the local system and then switching to a remote server as a second try. The problem is that there are a lot of these messages in the console, which makes it very difficult to use the console for anything else. Is there a way to

Remove fullscreen window decoration/border Chrome OS app/kiosk mode

丶灬走出姿态 提交于 2020-01-11 09:20:14
问题 I have a web application that I want to run in kiosk mode on a chromebox. So far I've pretty much got it all working, but I can't seem to get rid of the annoying big white border around the screen. A screenshot of the top left corner of the screen (fullscreen). I have added a black border to outline the image. My web application starts at the blue, the white border is added by Google Chrome. My app's manifest.json : { "manifest_version": 2, "name": "snipped", "description": "snipped",

Remove fullscreen window decoration/border Chrome OS app/kiosk mode

空扰寡人 提交于 2020-01-11 09:20:13
问题 I have a web application that I want to run in kiosk mode on a chromebox. So far I've pretty much got it all working, but I can't seem to get rid of the annoying big white border around the screen. A screenshot of the top left corner of the screen (fullscreen). I have added a black border to outline the image. My web application starts at the blue, the white border is added by Google Chrome. My app's manifest.json : { "manifest_version": 2, "name": "snipped", "description": "snipped",

Is the chrome.fileSystem app API deprecated?

旧巷老猫 提交于 2020-01-07 04:35:28
问题 I thought I heard a rumor that the chrome.fileSystem app API is going to be deprecated in Chrome in the near future. I already searched Google but could find nothing about it. Does anyone know what the status is on this API and whether I can expect to be able to use in the future? 回答1: Turns out I missed seeing the announcement at the top of the Chrome Apps pages until after I posted this question. https://developer.chrome.com/apps/api_index Chrome will be removing support for Chrome Apps on

GCM messages not getting delivered to Chrome Packaged Apps(offline mode)

本秂侑毒 提交于 2020-01-07 04:32:05
问题 I am using https://github.com/ToothlessGear/node-gcm to send message using GCM to chrome packaged apps. Everything works fine if chrome app is running When I am sending the message while chrome app is closed, those messages are not delivered after starting the app. I do get the message_id in the result at server. I also tried using command line, facing the same problem in command line too. Code at server side(nodejs) var GCM = require('node-gcm'); var gcmSender = new GCM.Sender(apiKey); var

How to clear the cache in webview chrome App?

落爺英雄遲暮 提交于 2020-01-06 17:10:29
问题 I am developing chrome app using webview(https://developer.chrome.com/apps/tags/webview) in chrome app with the following scenarios. show page content using offline cache file. app should not read cache file when app is in online. show custom reset method to clear the cache. I did 1st scenario, but I unable to reset the cache file when user is in online and also unable reset cache using custom method. I used the following documention https://developer.chrome.com/extensions/browsingData#method

Automatically jump to a certain part of a WebView

冷暖自知 提交于 2020-01-06 15:51:29
问题 I'm making a Chrome App, and i'm using the web view tag, which is similar to an iframe. Is there a way to load halfway down the webpage that's inside the web view? I have tried: <webview onLoad="window.scroll(0, 150)" class="test" src="http://example.co.uk/test.aspx"></webview> But it seems that would be far to easy. I'm not convinced its even possible. Thanks 回答1: Assuming for a moment that code would execute (it won't because of the CSP), window would refer to the app's page, not the

Display full path instead of ~ prefixed path in linux chrome apps

南笙酒味 提交于 2020-01-06 10:54:47
问题 I am trying to display the full path of a selected file in a chrome app on linux. When I invoke the filesystem getDisplayPath api I get the path of the selected file prefixed with ~. For example instead of /home/user/file.txt I get ~/file.txt. Is there a way to force the first format. A code snippet would be nice. Thanks in advance. 回答1: Currently, there is no way to get the full path. This is an open enhancement in Chrome (but not much happening there): https://code.google.com/p/chromium

Display full path instead of ~ prefixed path in linux chrome apps

限于喜欢 提交于 2020-01-06 10:52:21
问题 I am trying to display the full path of a selected file in a chrome app on linux. When I invoke the filesystem getDisplayPath api I get the path of the selected file prefixed with ~. For example instead of /home/user/file.txt I get ~/file.txt. Is there a way to force the first format. A code snippet would be nice. Thanks in advance. 回答1: Currently, there is no way to get the full path. This is an open enhancement in Chrome (but not much happening there): https://code.google.com/p/chromium

local xmlhttprequest from sandboxed page in chrome packaged app

﹥>﹥吖頭↗ 提交于 2020-01-05 08:44:33
问题 I have a packaged app that embeds a app-local page in an iframe (to embed libraries doing forbidden stuff). My sandboxed page wants to make an xmlhttprequest to a relative URL (so still in the same extension), but it is refused with the following message: XMLHttpRequest cannot load chrome-extension://nilibhiopchihkgnnecfblfjegmogpgn/libs/fonts/miss_fajardose/MissFajardose-Regular.ttf. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not