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
10
votes
2 answers

Add google analytics into a chrome extension using manifest v3

Is it possible to add google analytics into a chrome extension using manifest v3 ? How can i do that ? I found this post from stackoverflow : Add Google Analytics to a Chrome Extension so i tried the code into the accepted answer,…
10
votes
2 answers

Environment variables in manifest.json - Chrome Extension

Is it possible to set environment variables in the manifest.json file of a Chrome Extension?
10
votes
3 answers

PWA manifest.json - "theme_color" and "background_color" not working, splash screen not showing on android device

When I look at the manifest.js in Chrome DevTools I can see that the logo and colors are there. However, when I start the website from my homescreen on my android device, neither the background or theme color is loaded, nor my splash screen is…
10
votes
1 answer

Apply changes to Web App Manifest on an installed PWA

If I want to make changes to my Progressive Web App, e.g. a slight change on the app name, or update the logo, is it possible to force an update on all my users' installed apps? I tried adding "?v=2" to the manifest URL,
Nuno
  • 3,082
  • 5
  • 38
  • 58
9
votes
1 answer

Chrome gives a 401 error for manifest.json

I have a Flutter UI (Web channel) app that is deployed as a bundled Spring-boot app ( build files dropped into the main/resources folder in the Spring-boot project). The issue I'm facing is that every time I load the app in Chrome and login I see a…
9
votes
2 answers

Is it possible to change manifest.json file dynamically

I'm working on React PWA and I wanted to know if that's possible to dynamically add icons URL to the manifest.json file. So my goal is to show the generic app icon until the user has signed in. After that, I request a new icon from a remote API and…
Oleksandr Fomin
  • 2,005
  • 5
  • 25
  • 47
9
votes
1 answer

URIError: Failed to decode param '%PUBLIC_URL%/manifest.json'

I have a problem running application with webpack, I have this error: URIError: Failed to decode param '/%PUBLIC_URL%/manifest.json' at decodeURIComponent () I tried to resolve the problem like resolved for favicon but it did not…
Dmitry
  • 91
  • 1
  • 2
9
votes
3 answers

Why does my Manifest.json shows "Page does not work offline"

My Problem: I am trying to setup Progressive Web App for my site but my Manifest.json file's installability shows "Page does not work offline" I tried to find what's causing this but couldn't. Can someone shed some light into this?
9
votes
3 answers

jsreact - GET http://localhost:8080/manifest.json 404 (Not Found)

I'm trying to make my existing react application progressive by adding among other things a manifest.json. However it seems that my application is unable to find my manifest.json file as I get the above error message and Cannot GET /manifest.json…
9
votes
3 answers

getUserMedia in PWA with manifest on iOS 11

I have created a PWA which uses WebRTC's getUserMedia to get a live camera stream. The PWA uses a manifest.json, and works great on Android. On iOS however, the app also works if I open the link directly in Mobile Safari, but if I add it to the…
9
votes
1 answer

manifest.json of web app in sub directory not detected

I have my localhost server running at root folder and my webapp folder lies inside this root folder. http://127.0.0.1:8887/ -> root http://127.0.0.1:8887/webapp -> root/webapp The webapp contains it's index.html which links to manifest.json file in…
Nigel
  • 387
  • 4
  • 13
8
votes
1 answer

How to require permissions to be enabled in Firefox using Manifest v3?

As of January 17, Firefox now supports Manifest v3 in Firefox 109.0. I have an add-on I am testing with Manifest v3 and it requires access to a variable on reddit.com. I want to make the "Access your data for sites in the *://reddit.com domain"…
8
votes
2 answers

Progressive Web App "Manifest does not contain a suitable icon"

I am building a dynamic progressive web app. Due to this the Icons have to be able to change. For this I have a public S3 bucket that I am pointing to in the manifest.json file. Here is what that looks like: { "name": "Tenant 3", "short_name":…
A. Hasemeyer
  • 1,452
  • 1
  • 18
  • 47
8
votes
7 answers

Manifest.json Unexpected Token

Hello I pushed a react/express project up to heroku (https://polar-oasis-57801.herokuapp.com/) and received the following errors in the console: Chrome console error messages I tried looking up this error and it seems that I need to change something…
Adrian Bernardo
  • 97
  • 1
  • 1
  • 7
8
votes
3 answers

Prevent PWA from being installed

Is there any way to configure my manifest.json to disable the browser popup asking to "install" the site? I'm using the following JavaScript code to prevent it: window.addEventListener('beforeinstallprompt', function(e) { e.preventDefault(); …
1
2
3
36 37