google-chrome-app

Chrome app store porting from Android app using arc welder

馋奶兔 提交于 2019-12-30 14:48:12
问题 This question is relevant to app developers only! I am trying to convert and publish my android apps to chrome web store. I used the arc welder chrome app suggested in Google's getting started guide. I've downloaded zip from ARC welder app. When I launch the app from welder app, It's working as expected. The issue 1 (solved): After publishing the zip file on Chrome app store and trying to install on Chrome running on OSX platform the app appear "Unsupported platform" and does not allow to

Log in to a Chrome app or extension

耗尽温柔 提交于 2019-12-30 11:12:20
问题 How would I go about creating an auth system requiring a user to log in to a Chrome app or extension via my own service? A good example is the TweetDeck app, where the user can log in completely within the app with no need to visit an external website. 回答1: Use the Chrome Identity API to authenticate users: the getAuthToken for users logged into their Google Account and the launchWebAuthFlow for users logged into a non-Google account. If your app uses its own server to authenticate users, you

Content Security Policy in Chrome App

穿精又带淫゛_ 提交于 2019-12-30 00:13:30
问题 My Chrome app has the following manifest: { "name": ", "version": "1.0.3", "manifest_version": 2, "description": "Chrome Extension for.", "icons": { "16": "images/test.png", "19": "images/test.png", "256": "images/test.png" }, "app": { "background": { "scripts": [ "background.js" ] } }, "sandbox": { "js": [ "lib/test-api.js" ] }, "permissions": [ "<all_urls>", "notifications", "storage", "videoCapture" ] } I have a script file that runs eval . I have read about CSP and sandboxing, but I still

Why is this Google Chrome (Hosted) App invalid for Kiosk mode?

混江龙づ霸主 提交于 2019-12-29 08:45:19
问题 I have been trying to make a Kiosk Mode App from my Chrome book. But when I go into the "Manage Kiosk Applications" and enter in the Chrome Store URL for my app, I get a "Invalid Application" error, but if i just install the app from the store, it installs just fine (though it doesn't appear Extension page, but does in the applications menu). So I assume I have done something incorrectly with App manifest. here is my manifest (just changed the names and urls as it's private application) {

How can I launch a Chrome Packaged App through javascript?

允我心安 提交于 2019-12-29 07:17:09
问题 I want to be able to launch my packaged chrome app via javascript either on-page or through an extension. Am I able to do this? I have done a fair amount of research with no answer in either direction. Can somebody at least point me in the right direction? 回答1: chrome.management.launchApp can be used to launch an app in an extension. The API reference is available here: https://developer.chrome.com/extensions/management.html#method-launchApp. 回答2: You can make certain resources in your

How to set script-src in a Chrome packaged app?

三世轮回 提交于 2019-12-29 06:55:33
问题 I'm trying to create a Chrome packaged app from a complicated web app. I'm currently getting the error: Refused to execute inline event handler because it violates the following Content Security Policy directive: "default-src 'self' chrome-extension-resource:". Note that 'script-src' was not explicitly set, so 'default-src' is used as a fallback. How do I explicitly set the policy in my manifest.json? I've tried things like: "content_security_policy": "default-src 'inline'; script-src 'inline

Update object stored in chrome extension's local storage

房东的猫 提交于 2019-12-29 02:01:06
问题 I'm developing a chrome extension and I will store objects sent by server. For example, I will receive: command = {id:"1", type: "A", size: "B", priority: "C"} If I had a database, I would insert it as a line in table commands . Using chrome.storage, I'm storing an array of these object in key commands . But, when I receive a new command by server, I have to get from local storage, update the array and then set again. I'm worried about cases when I receive another command while I'm getting

How can a Chrome extension get a user's permission to use user's computer's microphone?

浪尽此生 提交于 2019-12-25 12:51:48
问题 If we run HTML5's Web Speech API's JavaScript codes below in a website on a Chrome, Chrome will ask for user's permission for the use of user's computer's microphone. var recognition = new webkitSpeechRecognition(); recognition.start(); But if I run codes above on a Chrome extension's page, Chrome doesn't ask users to give a permission. How can a Chrome extension get a user's permission to use user's computer's microphone? Thank you. 回答1: I think you have to implement it yourself. In chrome

How to create chrome tab of develop Chrome Extension like window.location?

北城余情 提交于 2019-12-25 04:58:07
问题 I am developing a chrome extension. I have a requiremen that is create a new tab with some params like javascript 'window' function. By default javascript window function, i need to set this code as below then window.location.replace allow permission to access the page in new window. window.name = JSON.stringify({ id : 'tmp', companyCode : companyCode, locationCode : locationCode, terminalNo : terminalNo, terminalKey : terminalKey, server:{ protocol : protocol, remoteHost : remoteHost,

Chrome App, persistent FileSystem, files lost after chrome restarts

时间秒杀一切 提交于 2019-12-25 03:04:25
问题 I'm developing a Chrome App which uses HTML5 FileSystem with persistent storage, my data was lost after chrome get restarted, I tested several times, 9 times out of 10 data lost after restart, I have fired an issue on Chromium site, I want to know if there is workaround or something I did mistake. here is my code: window.webkitRequestFileSystem(window.PERSISTENT, 120*1024*1024, function(fs) { function gotFileEntry(fileEntry) { fileEntry.createWriter(gotFileWriter, fail); } function