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
8
votes
1 answer

Google Chrome Extension manifest.json file

I'm developing a Google Chrome Extension and facing a challenge with the background; the browser doesn't load the background picture added in CSS. I can't seem to find an effective way to declare assets under the web_accessible_resources key in the…
Mohamed Abdallah
  • 111
  • 1
  • 2
  • 4
7
votes
2 answers

Chrome Extensions: CSS Injection on Manifest Version 3

I am attempting to inject CSS code into the active tab from a chrome extension, yet nothing I have looked at online so far has worked for me. I am fairly new to all of this, so apologies if my question is a bit naive and I am just missing something…
7
votes
1 answer

PWA install prompt when setting manifest dynamically

We have a web app which fulfills the PWA criteria. So far, when opening the app on an Android device, we received the PWA installation prompt. Now, if possible, we would like to generate the manifest.json dynamically on the client-side. I’m…
qqilihq
  • 10,794
  • 7
  • 48
  • 89
7
votes
1 answer

How to prevent target="_blank" links from opening by PWA app while you visit from chrome?

Some links on my website project have target="_blank" when I try to open it from Chrome 76/77 on Android mobile device all external links opens by PWA app which was installed (added to home screen). I need to open my links in a new tab instead of…
7
votes
2 answers

manifest.json display property has invalid option of browser

The documentation seems to state that there are four options for the "display" property within a manifest.json: fullscreen, standalone, minimal-ui and browser I decided upon 'browser' for one of my apps, but the message from Chrome (Version 76) says…
7
votes
1 answer

How to create PWA manifest.json dynamic?

I have created a functionality using static variablevariables in manifest.json such as : -- name -- short_name -- start_url And it's working fine for the "Add To Home Screen". When I set manifest.json variable dynamically, the add to screen…
7
votes
2 answers

Web manifest is not accessible after forcing SSL

I recently started forcing HTTPS and non-WWW forms for the URL of my React PWA through the .htaccess file, but this is apparently preventing certain applications (such as pwabuilder.com) from accessing public files of the app, such as its web…
7
votes
1 answer

Manifest.json for progressive web app not working

I am trying to get the manifest.json file working for my web app. Unfortunately it is not working right. I am receiving the following error in the chrome devtools: Line: 1, column: 1, Unexpected token. I am pretty sure that the JSON is valid but it…
Kevin Vugts
  • 1,462
  • 4
  • 21
  • 39
7
votes
3 answers

Manifest: property 'start_url' ignored, should be same origin as document

I was just building a static HTML page & I wanted to make it installable. manifest.json { "name": "YYY", "short_name": "YYY", "icons": [ { "src": "android-chrome-192x192.png", "sizes": "192x192", …
Melchia
  • 22,578
  • 22
  • 103
  • 117
7
votes
1 answer

PWA - manifest attribute "display": "standalone" not working on Android

I've noticed a really weird behaviour of my PWA. I can launch it in "standalone" mode on Windows, but when I'm trying to do the same on my Android device it's ignoring the "standalone" value and opens the url in Chrome (Android 7.0, Chrome-Android…
7
votes
0 answers

How can i track user's choice in chrome when native app install banner shows using adobe analytics

My mobile website when viewed on chrome, pops up the banner to ask the user if he/she wants to install the native app. Am able to use this by using the manifest.json. Since this pop up behavior is driven by chrome, am unsure how to track this using…
Karthik Balasubramanian
  • 1,127
  • 4
  • 13
  • 36
7
votes
1 answer

Orientation property of manifest.json is not working

This is my manifest.json { "name": "XXXXX", "short_name": "XXXXX", "start_url": "/", "gcm_sender_id": "XXX", "background_color": "#dfdfdf", "display": "standalone", "orientation": "landscape", "icons": [ { …
Yash Kochar
  • 461
  • 6
  • 15
6
votes
2 answers

You do not have permission to use blocking webRequest listeners. Be sure to declare the webRequestBlocking permission in your manifest

I try to develop my first chrome extension with react js. when I try to blocking a URL in the chrome extension using chrome.webRequest API In error page shows two errors. 'webRequestBlocking' requires manifest version of 2 or lower. Unchecked…
6
votes
0 answers

When i try to add Jquery cdn link in Chrome Extension MV3 I get Content Security Policy directive error

Currently I Try to Integrate Jquery Terminal on my chrome extension with manifest version 3, and I've an issue with Content security policy, every time I run the extension, I get this error. Refused to load the script…
6
votes
1 answer

Google chrome extension Manifest version 3 to handle Google sign-in's

I'm new at dealing with Chrome extensions, and I need to use Manifest version 3 to handle Google sign-ins on Chrome extensions. Once signed-in, I need to store user data on chrome storage as well. Can any one assist me with this? Thanks in advance.
1 2
3
36 37