google-chrome-app

Chrome packaged application - downloading file from Webview

隐身守侯 提交于 2019-12-20 05:19:09
问题 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

How to troubleshoot chrome packaged app crash

回眸只為那壹抹淺笑 提交于 2019-12-20 04:30:40
问题 I've enabled crashes tracking in Settings, but chrome://crashes/ page is empty 回答1: You should examine regular Chrome logs. See this article on how to enable logging. It also mentions Sawbuck as a log monitoring utility, which I used in the past to debug a crash in an extension. 来源: https://stackoverflow.com/questions/25380484/how-to-troubleshoot-chrome-packaged-app-crash

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

时光总嘲笑我的痴心妄想 提交于 2019-12-20 03:42:06
问题 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,

Enable Chrome Extensions in Google Chrome App webview

会有一股神秘感。 提交于 2019-12-20 03:05:36
问题 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? 回答1: Extensions in Chrome Apps aren't available by design. A webview is meant to facilitate displaying web-based content that you control, in which

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

左心房为你撑大大i 提交于 2019-12-20 02:58:06
问题 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

Do Chrome extensions have access to Chrome apps?

邮差的信 提交于 2019-12-20 02:32:14
问题 For security considerations I am wondering if Chrome extensions had access to an app. I design a Chrome App which handles sensitive data. As far as I understand it, that app runs in a sandboxed environment which should be fairly isolated. If a user had by mistake installed a malicious Chrome extension, would that extension be able to intercept/modify any of the sensitive data in the app? Please note that I do not consider other ways of interceptions outside of the Chrome environment, e.g.

How do I link my extension to my Android app?

别说谁变了你拦得住时间么 提交于 2019-12-19 12:49:31
问题 Chrome Web Store now shows links to Google Play for some apps and extensions: http://googlesystem.blogspot.in/2014/06/chrome-web-store-links-to-android-apps.html Can anyone suggest me the configuration that needs to be done for this? Is the integration done on our side or on the Google side? 回答1: Quoting from Francois Beaufort's G+ post on this topic: If you're wondering how to get the experimental "available for Android" link on the Chrome Web Store for your Chrome App/Extension, you have to

chrome packaged app image access

核能气质少年 提交于 2019-12-19 11:41:09
问题 I am having trouble accessing images in the chrome packaged app. These images are stored locally. Code works fine in the browser. following image tag <img ng-src="pics/{{employee.pic}}"> I am using angularjs. Thanks, Niranjan 回答1: See: https://developer.chrome.com/apps/app_external#external What you have to do is fetch the binary contents of the image with XMLHttpRequest as a blob, then convert that blob to an object URL, and that's the URL you set as the src attribute of the img. It's easier

Google packaged app - identity API - removeCachedAuthToken

佐手、 提交于 2019-12-19 09:45:19
问题 [google chrome 28] I am using chrome.experimental.identity API in a packaged app and getAuthToken works fine - get's token with which I can get user info, etc. I understand that the identity API is moving out from being experimental to the trunk so as from chrome 29 I will be able to use chrome.identity and remove "experimental" permission from my manifest. Q: If I want to make a logout button is removeCachedAuthToken the way to go about it? I tried to use it in the experimental.identity but

Building web server using chrome.socket API

佐手、 提交于 2019-12-19 09:18:13
问题 I've built a web server using Chrome Packaged Apps. The problem I see repeatedly is that chrome.socket.accept() and chrome.socket.write() don't invoke their callback functions. It usually works more or less reliably if request rate is less than 1 request per seconds. If I go above that, then I start seeing errors or missing callbacks. I did similar tests with sample "webserver" app build by Google (https://github.com/GoogleChrome/chrome-app-samples/tree/master/webserver). It has the same