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

Manifest v3 fetch data from external API

I'm developing a Browser (Chrome, Firefox) extension with react with Manifest v3. In my app, I have a search bar where I show suggested words based on the value typed by the user (like search engine do). In manifest v2, I used to load this script…
3
votes
1 answer

chrome.runtime.sendMessage not running onClick (manifest V3 chrome extension)

Note: I posted this question and someone marked it as a duplicate of this question. In that question, the solution is to inspect the popup rather than looking in the normal devtools. My issue is not that I don't know where to look, it's that the…
user12457151
  • 853
  • 2
  • 12
  • 25
3
votes
1 answer

Uncaught TypeError: Cannot read property 'sync' of undefined in chrome extension (manifest v3)

I'm trying to integrate a switch toggle button into my Chrome extension (manifest version 3). Yet get an error. The code basis for this is based on the following link: Chrome Extension set toggle switch state in all tabs I get the following error…
Julian
  • 598
  • 8
  • 23
3
votes
1 answer

Change the notification icon/badge/title color on Android when using Javascript Web Push PWA

How do you change the icon (or I think its called badge) and title color of a notification when using web push? I have both normal push notifications working from my website, and push notifications from a PWA I have the following: const title =…
3
votes
0 answers

"Could not decode image: 'primary.png'" when installing chrome extension

I recently built a chrome extension, and uploaded it as a google store item. However, when I try to install the extension from it's store page, I get the error "Could not decode image: 'primary.png'". "primary.png" is the extension icon, as listed…
3
votes
2 answers

MS Teams bot deploy rejects auto-generated manifest.json with message "Manifest parsing has failed"

I redeployed my (sideloaded) Teams app that implements a very simple bot that auto-messages rooms every day. This was working for a long time, and I made a slight change so I needed to redeploy, remove from the Teams room, and add it back. After I…
snn
  • 405
  • 5
  • 15
3
votes
1 answer

Error handling response: TypeError: Cannot read property 'show' of undefined at chrome-extension

At contentScript.js I put this code... chrome.runtime.sendMessage({ todo: "showPage" }); and at backgroundScript.js chrome.runtime.onMessage.addListener(function(request, sender, senderResponse) { if (request.todo == "showPage") { …
Dee Jee
  • 101
  • 1
  • 10
3
votes
1 answer

How to generate and place a blob file on a relative path?

While building the "Add to Homescreen" feature on a relative URL, I am generating my manifest.json dynamically and placing it via creating a Blob URL and adding it to the href attribute of the link[rel="manifest"]. The place where I am stuck is, my…
3
votes
1 answer

Angular - Installability "No matching service worker detected"

I have encountered a major problem in a PWA I am currently maintaining: Problem is, that the PWA is not installable in productive environment. Whereas on my local machine, it works fine (tested with http-server on localhost) The PWA consists of an…
Rul3r
  • 526
  • 6
  • 14
3
votes
1 answer

Stop browser from requesting service-worker.js from server

On a former project I was working on there was a manifest.json file while allowed the app to be a progressive web application. However even now on different projects I can see that my browser is requesting the service-worker.js file from the backend…
Anthony
  • 13,434
  • 14
  • 60
  • 80
3
votes
2 answers

Manifest JSON 404 not found for PWA?

I have a web application built in Visual Studio (C#) and I'm trying to turn it into/make it a PWA (progressive web app). I have created a manifest json file : { { "dir": "ltr", "lang": "en", "name": "OSU Project Manager", …
3
votes
0 answers

How do I get iOS to respect a manifest file for a web app that's already installed?

I have a web app that many users have added to their home screen. This works in standalone mode thanks to apple-mobile-web-app-capable=true. However, in recent versions of iOS, new pages break out of standalone and open in safari with header etc. To…
Unstableair
  • 143
  • 1
  • 10
3
votes
0 answers

How to insert an html to the top of a page?

I need to find a way to insert an HTML page into the top of any page using an extension. It should basically appear as a bar that fills the width of the full screen and occurs right below the bookmarks bar, so right above the body. I have the HTML…
3
votes
3 answers

How to show home screen prompt in IOS device using PWA

I am new to PWA and I am stuck on one task. Here is my manifest.json file which helps to display add to home screen popup to android device. { "short_name": "The Cozy", "name": "The Cozy", "icons": [ { "src":…
3
votes
1 answer

PWA not displaying custom icon according to manifest.json (Node.js on Heroku)

I have a PWA built with CRA, it's hosted on Heroku. The PWA is downloadable on my iOS device and everything works fine, EXCEPT the icon. I'm not sure if the file reference is correct, because it changes during Heroku Build. I've tried both my…
Izzi
  • 2,184
  • 1
  • 16
  • 26