google-chrome-app

Chrome app navigate htmls without creating windows

…衆ロ難τιáo~ 提交于 2019-12-02 04:27:06
I'm creating a chrome packaged app, and I need to navigate my htmls without creating a lot of windows, like, if the user click one button, it opens the html in the same window the user are. Is it even possible? If not, is there a way to make windows modal? So the user can't focus another window without closing the current? Packaged apps intentionally do not support navigation. Apps are not in a browser, there is no concept of forward, back, or reload. Applications which do require the concept of navigation, or modal dialogs, should use a user interface framework that supports that

chrome.hid.send fails on second use

浪尽此生 提交于 2019-12-02 04:22:02
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 both on a mac and a PC. My call stack depth is 2 at this point in my application (literally first one is

HID compliant device will not enumerate using chrome.hid API on ChromeOS

最后都变了- 提交于 2019-12-02 04:12:22
问题 Using a USB HID sensor I can only seem to enumerate the device with the chrome.usb API on ChromeOS. On OS X I can enumerate with the chrome.hid API with no problem. What could be the reasons for HID devices not being identified as such on ChromeOS? 回答1: It is possible the device is blacklisted by the Linux HID driver. If you can put your Chrome OS device in developer mode or connect the device to a Linux computer you can check the kernel log to see how the device is recognized. If all is well

Run chrome application from a web site button

我的未来我决定 提交于 2019-12-02 04:06:39
I have a requirement to launch a chrome application from a web page button click . I have found the following resources,' Run Google Chrome application from url Activate chrome app from web page? How can I launch a Chrome Packaged App through javascript? Which suggests to use externally_connectable and url_handlers but doesn't seem to work. Is there a proper way I could launch a chrome application via button click on web page by calling the chrome app extension id ?. I am new to this field and any help from you experts would be greatly appreciated :) PS I tried the following command on a

How to launch my swf game in my manifest.json file for my Chrome packaged web app?

匆匆过客 提交于 2019-12-02 03:35:35
I'm struggling to get my first Flash game on the Chrome store as packaged web app. All the tutorials I manage to find online are old and obsolete, or missing crucial info for a noob like me. This is what I have so far for my manifest.json file: { "name": "Snappy Turtle", "description": "Swim dangerous waters.", "version": "1.8", "manifest_version": 2, "app": { "background": { "scripts": ["background.js"] } }, "icons": { "16": "favicon.png", "128": "icon.png" } } Somewhere in the mix I need something like the following so it will actually launch my game: "launch": { "local_path": "index.html" }

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

做~自己de王妃 提交于 2019-12-02 02:50:26
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 plataform but I can't figure out what is and how fix it. I have tried opening the file with other encoding

Can I get my IP address in a chrome app without using an external service?

喜欢而已 提交于 2019-12-02 01:37:44
I am building a chrome app and created a UDP socket via the chrome socket api . Is there a way to retrieve your own IP address without using an external service? What I mean by "own IP address": Both client and server are on the same network. The chrome app needs to answer to a UDP broadcast with it's own local IP address . There is actually a chrome socket API for exactly that use-case. But unfortunately I only receive the following callback object: Object {paused: false, persistent: false, socketId: 17} , which misses the localAddress attribute. It is an (optional) attribute in the

How do I manually clear cache for webview in Chrome app?

扶醉桌前 提交于 2019-12-02 01:10:54
I am developing a Chrome app that shows some web content in a webview tag. The content is being cached. When I edit the content files, clearing Chrome browsers' cache does not seem to actually clear the webview cache. One of the posts recommends to assign a unique partition ID every time Chrome app starts. Changing partition ID on the webview does help to clear (or re allocate) the cache, but I still would like to take advantage of caching 3MB of web content and clear it manually only if it changes. Is there a way to clear that cache, in particular on Chrome OS? This has since been implemented

Enable Chrome Extensions in Google Chrome App webview

十年热恋 提交于 2019-12-02 00:19:55
I'm building a Google Apps Chrome App (not extension but app ) with gmail, calendar, etc. I would like to run extensions from regular chrome in my app. For example, rapportive is a fantastic extension for gmail. But it seems that extensions do not run on pages hosted in a webview . Does anyone have an idea of how enable extensions in chrome apps? Extensions in Chrome Apps aren't available by design. A webview is meant to facilitate displaying web-based content that you control, in which case you'd have the ability to alter that content at the server, rather than relying on an extension to do

Alternative to Javascript's prompt() for Google Chrome Web App

你说的曾经没有我的故事 提交于 2019-12-01 22:38:20
I'm currently developing a Chrome Web App using the Chrome Platform APIs and Javascript and I simply can't find a way to display a prompt() dialog to ask the user for a value, in a way that prevents him from clicking anywhere else until he enters a value and accepts or cancels (meaning, EXACTLY how it works with Javascript). My problem is, I just can't find a way to do this with the Chrome Platform APIs (note that prompt(), alert() and confirm() can't be used in packaged apps). I already checked questions similar to mine and they all point to the Google App Script documentation, which doesn't