Questions tagged [manifest.json]

The `manifest.json` file is a JSON -formatted file that give you the ability to control your application and is the only file that every WebExtension must contain.

Every extension has a JSON-formatted manifest file, named manifest.json, that provides important information like :

  • Version
  • Name
  • Description
  • Default locale
  • Icons
  • Developer
  • Type ...
555 questions
6
votes
0 answers

Chrome Extension - how do I get the window object in Manifest Version 3 (MV3)?

Overview I was able to successfully inject my Javascript script through the new chrome.scripting API. However, I am still unable to access the page's window object via this injected script. What I have tried Back in MV2 I used to do the…
Diego Fortes
  • 8,830
  • 3
  • 32
  • 42
6
votes
0 answers

My PWA doesn't appear as installable in Chrome for Android ONLY

I have built a "PWA" that seems to be working properly on desktop environments. I can install it on my desktop PCs and Mac without any problem: Additionally, the requirements are also met (at this point in time [2021-05-11]): PWA Builder results…
6
votes
1 answer

Unchecked runtime.lastError: Cannot access contents of url "". Extension manifest must request permission to access this host. In manifest 3

Help me, please! I have gotten error Unchecked runtime.lastError: Cannot access contents of url. Extension manifest must request permission to access this host. and Unchecked runtime.lastError: Could not establish connection. Receiving end does not…
Yaroslav
  • 88
  • 2
  • 10
6
votes
0 answers

Remotely hosted code replacement in Manifest V3

I previously had a content script that fetched the code and ran it through eval so that I could update the extension instantly for all users, without waiting for everyone's extensions to update. From the migration guide: Externalize logic with a…
6
votes
2 answers

manifest.json failing to load icon files

So my setup is the following: A static website (mkdocs) deployed at https://sub.domain.com/folder/ in Azure Blob storage, running on Kestrel. testing locally at localhost:port without a subdomain and folder.
Stan
  • 121
  • 2
  • 8
6
votes
3 answers

undefined is not an object ( evaluating '_expo.default.Constants')

I would like to debug on my mobile/simulator and point it dynamically to API. const {manifest} = Expo.Constants; const api = manifest.packagerOpts.dev ? manifest.debuggerHost.split(':').shift().concat(':3000') : 'productionurl.com' export…
chandra
  • 83
  • 1
  • 2
  • 8
6
votes
1 answer

how to set multiple Content Security Policies in a chrome extension manifest.json file

in the Google chrome documentation I found that I can add content Security Policy to allow an external javascript file to work on my extension. but I couldn't find how to add multiple ones. Is it an array of Strings? "content_security_policy":…
Creeper
  • 386
  • 3
  • 16
6
votes
2 answers

PWA wont open in standalone mode on android

I am trying to implement Add To Home Screen on the latest Chrome & Android (7). I have specified "standalone" in the manifest file but the app only opens in the browser. I've gotten the desired behavior before on the same device, but can't seem to…
David
  • 2,846
  • 3
  • 22
  • 34
6
votes
1 answer

Remove name in PWA splash screen

how can I remove the name in the splash screen of my progressive web app? The app name is already in the logo / icon. That's why I don't want to see the name in the bottom of the splash screen again. example manifest.json: { "name": "HackerWeb", …
5
votes
3 answers

Display a favicon in a Chrome extension newtab page using manifest v3

I have recently migrated my chrome extension to manifest v3 using this guide: https://developer.chrome.com/docs/extensions/mv3/intro/mv3-migration/ The v3 manifest.json file no longer supports using chrome://favicon/. Looking through the…
GeorgeButter
  • 2,521
  • 1
  • 29
  • 47
5
votes
1 answer

Do I need to declare host_permissions in my chrome extension?

I'm creating a chrome extension that should be able to be accessed by the user on any website they are on. I don't have any content scripts, only popup.js and background.js. Would I need to have my host permissions in manifest V3 like this? Or am I…
Ganning Xu
  • 263
  • 4
  • 13
5
votes
1 answer

Chrome extension - how to access local file:// with manifest v3

I have a Chrome extension that can (if you allow access to file URLs) grab your local pdf file that you have open in chrome and send it on to our API for processing. This is done by fetching the pdf with XMLHttpRequest to…
Clara Attermo
  • 143
  • 1
  • 7
5
votes
4 answers

Blazor WASM PWA Cannot Change Icon, Cannot Change Name

I'm struggling with a case where I've done good research on how to it. It works for everyone but not for me!! Environment: Microsoft Windows 10 Pro Visual Studio Community Edition 2019 So I've created a project and selected Progressive Web…
5
votes
1 answer

Im getting a error about in a manifest json i cant locate when serving my vue project

So this is the error i get when i open my vue project... except that i cant even locate my manifest.json nore do i have a /img/icons folder in the project. I cannot figure out what the error is or how to correct it Error while trying to use the…
Nadav Julius
  • 301
  • 2
  • 16
5
votes
1 answer

created vue app with pwa, but cannot find manifest.json to edit

update: solved by reading document : https://cli.vuejs.org/core-plugins/pwa.html#configuration I just created a vue app, then vue add @vue/pwa The manifest.json is found by browser, but I can not find the file to edit. Please help!!!! the brower…
Fen Zheng
  • 51
  • 1
  • 4