Questions tagged [google-chrome-app]

Don't use this tag for PWA or the Chrome app/binary itself! Use this tag only for apps built using Chrome App specification. Just like web apps, Chrome Apps are written in HTML5, JavaScript, and CSS, yet they look and behave like native apps, and they have native-like capabilities that are much more powerful than those available to web apps.

Note: Chrome Apps are to be discontinued by early 2018 for Windows, Mac, and Linux. However, they will still be supported on Chrome OS.

Google Chrome Apps deliver an experience as capable as a native app, but as safe as a web page. Just like web applications, Chrome Apps are written in HTML5, JavaScript, and CSS. But Chrome Apps look and behave like native applications, and they have native-like capabilities that are much more powerful than those available to web applications.

Chrome Apps are distinct from Chrome Extensions; use the tag if you want to ask a question about Chrome extensions.

Note: Chrome for mobile platforms ("Chrome app") is not covered by this tag. Use the tag for questions regarding mobile Chrome.

Chrome Apps have access to Chrome APIs and services not available to traditional web sites. You can build powerful apps that interact with network and hardware devices, media tools, and much more. Here's a short list of examples:

Working samples and examples can be found on GitHub as well as a step-by-step guide.

The term "Chrome app" used to refer to legacy "packaged apps", which is deprecated in favour of Chrome apps.

2527 questions
27
votes
6 answers

eval in chrome package app

I would like to create a package app chrome extension to allow the user to write and execute javascript code (like a javascript console). I would like to use the eval() function to execute the JS code. The classic javascript eval function throws an…
26
votes
1 answer

Communicating between a Chrome packaged app and a Chrome extension?

I need to combine functionality available only in a Chrome packaged app (access to syncFileSystem) and functionality available only in a Chrome extension (injecting a script into a 3rd party website). It seems that neither a packaged app nor an…
25
votes
3 answers

What are the pros and cons of Chrome Apps compared to Electron?

I want to program a desktop app in javascript (with web technologies) and looked for a comparison between Electron and Chrome Apps. Everything I need seems to be possible with Chrome Apps, but there's a big hype around Electron/NW.js. What are the…
miu
  • 1,234
  • 2
  • 18
  • 34
22
votes
3 answers

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

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.…
21
votes
4 answers

Extension installed from Chrome Webstore throws error "Package is invalid. Details: 'Cannot load extension with file or directory name _metadata...'

When a CRX is added to the Chrome web store, Google adds a directory _metadata to the crx. Older versions of Chrome do not know about this directory (tested on Chrome 27) and throw this error: Package is invalid. Details: 'Cannot load extension with…
Don Rhummy
  • 24,730
  • 42
  • 175
  • 330
20
votes
3 answers

Developing apps for Chrome OS with Electron

I have to develop an app with Windows, MacOS and Chrome OS support – at the very least. Chrome OS is an important requirement because this app is intended to be used in schools – where Chromebooks are a kind of a big deal. As you may know, Chrome…
calvillo
  • 892
  • 1
  • 9
  • 23
20
votes
3 answers

How to debug a Kiosk Chrome application running on a Chromebox?

A Chrome Kiosk application that I wrote has a problem only when running in Kiosk mode on a Chromebox. When staring the application manually after I log into the Chromebox it runs well. Also when testing the application on my development machine…
20
votes
1 answer

How can I debug a running Kiosk-mode Chrome application?

I have a Chrome application that experiences issues only when being run in kiosk mode. Is there any way to connect a debugger or enable the inspector for Kiosk-mode applications?
Simon Steele
  • 11,558
  • 4
  • 45
  • 67
20
votes
3 answers

Is it possible to get an Id token with Chrome App Indentity Api?

I can't get a user's id_token (https://developers.google.com/accounts/docs/CrossClientAuth) from the Chrome identity api (https://developer.chrome.com/apps/identity). I can get an access_token using the chrome identity sample when the oauth section…
20
votes
2 answers

How can I enable my chrome extension in incognito mode?

I created an extension for Google Chrome and would like to know if it is possible for my extension to be enabled in incognito mode. Ex: chrome.extension ...... allowedIncognitoAccess = true
19
votes
3 answers

Debugging new Chrome packaged apps

I'm playing with new-style packaged apps in Chrome 24, and I don't see any way to bring up Developer Tools to do debugging. What's the recommended strategy for debugging?
Drew Sears
  • 12,812
  • 1
  • 32
  • 41
18
votes
2 answers

How to convert FileEntry to standard JavaScript File object using chrome apps fileSystem

Is it possible to convert FileEntry to standard JavaScript object File? I can't find anything meaningful in documentation https://developer.chrome.com/apps/fileSystem
18
votes
2 answers

Websocket server in chrome packaged app

Im building a websocket server in chrome packaged apps. I got everything working (handshake and recieving from client to server) but, when I try to send message from Server to Client it always get an error: "failed: A server must not mask any frames…
Caio Keto
  • 1,919
  • 4
  • 20
  • 30
17
votes
6 answers

How to read a properties file in javascript from project directory?

I'm building a Chrome Packaged App. I want to put the script configuration if a config file in a resource directory and on startup want to read that by Javascript. For example Project…
D.S
  • 1,110
  • 3
  • 11
  • 26
17
votes
4 answers

How to cause a chrome app to update as soon as possible?

Deploying a chrome packaged app and publishing updates on the chrome web store allows users to automatically receive application updates. There are situations where you want to know if the running application is the most current or not, and updating…
Vincent Scheib
  • 17,142
  • 9
  • 61
  • 77