google-chrome-app

Phonegap plugin result when app is not active anymore

那年仲夏 提交于 2019-12-11 01:30:16
问题 I'm trying to edit the phonegap/cordova PushPlugin plugin for android in order to not create an status-bar Notification when app is not active but always doing some javascript work. I want to receive my GCM message an do some work on it with javascript at anytime. GCM message received by PushPlugin => javascript function called. I've no problem to make this working when my cordova app is active (ie in foreground or paused). But I can't use sendJavascript(...) when the app has been destroyed.

detect the the title bar height for a window for different operating systems with javascript

房东的猫 提交于 2019-12-11 01:27:26
问题 I am making a canvas game in a chrome app with it's own window. I made my game resize with the window's size using window.onResize . Since my game is made with an 8-bit style, I don't want the default window size to have blurry pixels because it is partially resized. I am aware that you can specify the window's size in the background.js file, but when the window opens, the size of the window includes the title bar. Basically, I want the game height to be 400px, but I can only set the window

Can I launch VNC Viewer for Google Chrome webapp from my web page?

好久不见. 提交于 2019-12-11 01:01:56
问题 I am building a web service that gives VNC connections to remote machines. Currently I am using a project called novnc to embed the VNC inside a element in my web page. However, it is very slow, especially web browsers, eclipse etc. When I tried the VNC Viewer for Google Chrome webapp released by novnc, however, it seems really fast. This might be because its running native (native VNC clients are also very snappy). I was wondering whether I can have my users install the Real VNC webapp, but

Chrome PNaCl app inline installation

余生长醉 提交于 2019-12-10 23:35:52
问题 I want to distribute a PNaCl app, inline installation and use the app without leaving the current page . I have published the app on CWS. The app needs some user permissions. Inline installation works and the app appears in the Chrome browser apps section. But, I get this error : "NaCl module load failed: could not load manifest url" when I try to load the app using: <embed id="testapp" width=0 height=0 src="testapp.nmf" type="application/x-pnacl" /> This is the testapp.nmf file which is

How do I handle options in a packaged Chrome App?

ⅰ亾dé卋堺 提交于 2019-12-10 22:49:58
问题 I want to deploy an existing JS app as a Packaged Crome App to make it distributable in the Chrome Web Store. In "legacy packaged apps", there is/used to be a way to specify an options_ui page (in old legacy (legacy-legacy?) apps it was options_page ) which would be accessible via a special link from your app, or by automatic link from from within chrome://extensions . There doesn't seem to be any mention about how to migrate the options_* feature, but if the manifest.json of a Chrome App has

Using Polymer in a Dart Chrome App

南楼画角 提交于 2019-12-10 20:12:43
问题 I am trying to build an app with Dart and Polymer. But polymer scripts seem to be using eval() in web_components/platform.js:32. Has anyone managed to do this? I tried to change CSP but that helped in first place. Does anyone have a working example? Regards and Thanks Robert EDIT manifest.json: { "name": "Animatr app", "version": "1", "author": "Robert Hartung", "manifest_version": 2, "icons": {"128": "animatr_icon.png"}, "app": { "background": { "scripts": ["background.js"] } }, "content

Chrome messaging: chrome.runtime.sendMessage not working on the newest release 49

陌路散爱 提交于 2019-12-10 16:59:10
问题 I have a Chrome extension that works perfectly fine on version 48 but for some reason, isn't working on 49 and am not able to find anything on their release/change log. The part that isn't working is the message passing. Backgound page: chrome.runtime.onMessage.addListener(function(msg, sender){ console.log(msg); }); chrome.runtime.sendMessage({info:"this is a test"}); This will not output anything on version 49, but will on version 48. How do I fix this? 回答1: This is the intended behaviour.

Different ways to fetch OAuth token from an extension?

江枫思渺然 提交于 2019-12-10 16:28:35
问题 I know only two ways to get google OAuth token : 1. chrome.identity.getAuthToken() : Fetches token associated with chrome account. After restarting chrome, I can call getAuthToken() method without logging. Works great. But doesn't work for non - google account. 2. chrome.identity.launchWebAuthFlow() : Works both for google and non- google account. But after restarting chrome, if call launchWebAuthFlow() , it asks for login again. It is annoying. What I want to achieve is to combine the

When launching google apps from command line , don't want to open google chrome browser

坚强是说给别人听的谎言 提交于 2019-12-10 15:16:22
问题 When I launch google apps[which is developed by myself] from command line, for example: chrome.exe --load-and-launch-app="C:\Users\KyawKhaing\Desktop\chrome\Chrome App\Example2" After I run this, I see Google Chrome Browser open first follow by my google chrome apps launch. I don't want to open google chrome browser when I launch a chrome app. Any one know the solution. Is it possible? 回答1: Use the --silent-launch argument. chrome.exe --silent-launch --load-and-launch-app="C:\Users\KyawKhaing

Search editText animation like Chrome app

蓝咒 提交于 2019-12-10 13:48:48
问题 I'm trying to make a search editText in the middle of screen, That whenever pressed, move with animation to the searchView in the toolbar. Exactly as you can find in new tab of chrome app (v46) for android. Didn't find any Github example, so any idea how to implement that? 回答1: I've created a gist to show one way that this can be done: https://github.com/orenothnay/SearchBar The main component is FocusableEditText (which I adapted from androids searchview widget). It uses a workaround to