google-chrome-app

Chrome Apps : How to save blob content to fileSystem in the background?

前提是你 提交于 2019-11-28 04:16:15
问题 In Chrome Apps, I'm downloading a blob content from a server using JavaScript XHR (Angular $http GET in particular, with response type 'blob') How should I save this to chrome application's file system? Currently using an Angular wrapper on HTML5 filesystem API https://github.com/maciel310/angular-filesystem I do not want to show user a popup (hence I can't use chrome.fileSystem. chooseEntry ) The chrome.fileSystem.requestFileSystem API is only supported by Kiosk-only apps. Hence I'm using

How to allow video autoplay in a Google Chrome kiosk app in version 66 or later

╄→尐↘猪︶ㄣ 提交于 2019-11-28 03:17:15
问题 As of version 66 of Google Chrome onwards it will no longer automatically start playback of audio and video files when the playback volume is not muted. This change was made to prevent autoplay on ad videos and other annoying web page elements. However, this has negative consequences for a number of perfectly valid applications of the autoplay feature, for instance in signage applications. The new default behaviour of not auto playing a video with sound can be overridden at the startup of the

How to access internal resources from background.js

孤人 提交于 2019-11-28 02:02:25
In a Google Chrome application is it possible to access bundled data files from within the background.js script? E.g. if I had a file called data.json that I include with the app, is there a JavaScript API that I could use in the background.js script to get at the files contents? With the example bundle directory structure: /app/manfifest.json /app/backround.js /app/data.json I want to do something like: chrome.app.runtime.onLaunched.addListener(function() { data = unknown.api.loadFileSync("data.json"); // do stuff with data // ... }); Background scripts can access resources using XHR . To get

How to use “system_indicator” in the manisfet of a Chrome Packaged App?

梦想的初衷 提交于 2019-11-27 21:37:40
I'm trying to create a Chrome package App with an icon in the system menu bar as explain here : https://docs.google.com/document/d/1QhhfR33Y28Yqnnoa_Sl3fnZK_mKtwt4dZe6kNyJ_MjU/edit , The Google Hangout App can implement this feature (it's not exactly the same behavior) but I don't find any good documentation to do the same. In the manifest page of Google Packaged App, we can see the field "system_indicator". Is it what I'm looking for ? When I try to set this field to an url of an icon, Chrome return me this error : 'system_indicator' requires Google Chrome dev channel or newer, but this is

How to launch a Chrome App from a Chrome Extension?

筅森魡賤 提交于 2019-11-27 19:04:44
问题 Typically an app is opened from chrome://apps/ or in the button Chrome apps , but how would from an external Chrome Extension? My extension: ->manifest.json ->background.js My app: ->manifest.json ->background.js Then, how to launch my app from my extension ? 回答1: It's in the docs: chrome.management.launchApp chrome.management.launchApp("YourAppsId", function(){ if(chrome.runtime.lastError) console.error(chrome.runtime.lastError); else console.log("App launched"); }); You will need the

XCode Error itms-90035 - Invalid signature? [duplicate]

随声附和 提交于 2019-11-27 18:43:17
问题 This question already has an answer here: Error itms-90035 - Xcode 15 answers I've been building with Chrome-Mobile-Apps for the last few weeks in XCode with no problems until this morning, where I'm getting this Erorr itms-90035 when I try to submit my archive to the App Store. It will validate fine, but when I try to submit -- nada. Here is the error I get: I found this thread that has the same issue, but the highest rated solution is not working for me. The file it points to in my erorr is

How to communicate between multiple windows of the same chrome app?

亡梦爱人 提交于 2019-11-27 18:30:24
问题 When using chrome developer tools, it appears that each app window (and the background 'page') has its own javascript context (space of objects, thread of execution), and yet the createdWindow callback of chrome.app.window.create apparently provides direct access to the objects of the 'other' window that was just created. Given that, I'm unclear on the best way to communicate between windows; e.g. if I open a second window to act as a dialog box, when the user clicks OK to save changes,

Chrome App: Doing maths from a string

天涯浪子 提交于 2019-11-27 15:55:52
I have a basic Chrome App that I'm building that constructs strings like this: "1 + 4 - 3 + -2" Seeing as you can't use eval() in Chrome Apps, how can I get the answer to a string like so? eg. If this was just a normal webpage I would use something like this: var question = { text: "1 + 4 - 3 + -2", answer: eval(this.text) } Is there any possible way of replacing eval() with something else to answer a string like question.text ? Try modifying string to "+1 +4 -3 -2" utilizing String.prototype.split() , Array.prototype.reduce() , Number() var question = { text: "+1 +4 -3 -2", answer: function()

How to create Progressive web app apk/any type of file that can be distributed in a enterprise devices

北战南征 提交于 2019-11-27 15:20:22
问题 Understandably, Progressive web apps(PWA) are added to home screen after the user visits the web app in supported browser(chrome for now I guess) and clicks on "Add to Home Screen". This works fine for publicly available PWAs. Thinking of Enterprise android applications, which needs to be installed to thousands of devices via some app push tools like Airwatch, its practically not possible to have someone open the browser, put the URL and then add to home screen in all thousands of devices. Is

Chrome Packaged App and Dual Monitors

眉间皱痕 提交于 2019-11-27 15:05:22
问题 I am working on a packaged app that will use multiple displays. I need to be able to open windows in specific displays. I've also tried opening windows and then, using javascript, moving them to a monitor. But the app will not move any further than the bounds of the active display. Any ideas on how to get this to work? 回答1: Use chrome.system.display.getInfo with this you can get the display info for each active display. With displayInfo.workArea you can get the working area of each display,