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
167
votes
3 answers

Chrome Extension Message passing: response not sent

I am trying to pass messages between content script and the extension Here is what I have in content-script chrome.runtime.sendMessage({type: "getUrls"}, function(response) { console.log(response) }); And in the background script I…
84
votes
5 answers

Difference between Chrome Apps and Extensions

What is the difference between Chrome Apps and Extensions? What can you do with apps that you can't do with extensions or vice versa?
frum
  • 883
  • 1
  • 7
  • 6
68
votes
1 answer

Refused to execute inline event handler because it violates CSP. (SANDBOX)

I'm developing a google chrome packaged app, when I put Sandbox in the manifest.json: { "manifest_version": 2, "name": "WM32216", "version": "2.1", "minimum_chrome_version": "23", "permissions":["webview",…
JC Borlagdan
  • 3,318
  • 5
  • 28
  • 51
67
votes
1 answer

How do I import scripts into a service worker using Chrome extension manifest version 3?

I am trying to migrate my chrome extension from manifest version 2 to 3. Now that background scripts are replaced by service workers in manifest v3, I can no longer use a html file and refer js files in script tags. Is there any way I can import my…
65
votes
3 answers

How to change chrome packaged app id Or Why do we need key field in the manifest.json?

I'm developing packaged app for chrome store using one-time chrome wallet payments. For my app I need to check during the runtime if user bought the app or not to decide should it be demo functionality or full functionality. According to the chrome…
61
votes
7 answers

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'"

Im creating a chrome extension for Rss reader in that im getting the above error. please help manifest.json { "name": "Tutorialzine Extension", "manifest_version": 2, "version": "1.1", "description": "Making your first Google Chrome…
48
votes
2 answers

Chrome App webview and touch scroll propagation

I am in the happy position of replacing a Windows 8 Metro app with a Chrome packaged app. For the time being, it needs to mimic the look and feel of the Metro app. The main page consists of multiple webviews arranged horizontally with a large amount…
powski
  • 489
  • 3
  • 4
46
votes
3 answers

Chrome DevTools: paused before potential out-of-memory crash

In latest Chrome DevTools I can see a new information: Now, I'm not sure how to use this information. It seems to appear randomly in the app. How can I debug the app to avoid potential out-of-memory crashes? I checked in task manager that at the…
Pawel Uchida-Psztyc
  • 3,735
  • 2
  • 20
  • 41
44
votes
18 answers

Is it possible to remove "Inspect Element"?

Is it possible to remove or disable "Inspect Element" context menu in Chrome App via Javascript? I have searched through several forums but there are no definite answer.
Kim Honoridez
  • 917
  • 2
  • 15
  • 28
43
votes
5 answers

Unchecked runtime.lastError when using Chrome API

I use chrome.fileSystem API in my app to open a file. When I click the Cancel button of the file chooser dialog, an error occurs: Unchecked runtime.lastError while running fileSystem.chooseEntry: User cancelled How to fix this error?
41
votes
6 answers

Run chrome in fullscreen mode on Windows

I want to configure my computer to launch Google Chrome Windows start up. It should start in full screen mode and open some web page. I tried to run Chrome with the following command line: chrome.exe --start-fullscreen…
Vadym Fedorov
  • 2,395
  • 2
  • 21
  • 31
39
votes
2 answers

Content Security Policy in Chrome App

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":…
32
votes
6 answers

Universal path to chrome.exe

I am making an application and I want to make it installable on the user's desktops using chrome URL shortcut. Therefore, is there a universal path to the chrome.exe that can launch my app on all Windows versions ( XP, Seven and vista )
Sirine Hlima
  • 327
  • 1
  • 4
  • 7
31
votes
2 answers

Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded

I am getting this exception in my background.html page. I don't know what this exception says. Can anyone explain this exception and also tell me how to resolve this exception. The exception details are Unchecked runtime.lastError while running…
31
votes
6 answers

Apps, Extensions and scripts cannot be added from this website

I'm trying to add the Rapid Interface Builder extension to chrome using the rib.crx file I downloaded from https://01.org/rapid-interface-builder/downloads/2012/rib-preview-1-chrome-extension Unfortunately, every time I open the crx file with chrome…
1
2 3
99 100