Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

manifest.json vs manifest.webmanifest

I'm developing an application using mongodb, Node.JS and PWA. In the first step of developing I don't know what is the difference between manifest.json and manifest.webmanifest.

like image 876
Mostafa Ghadimi Avatar asked Sep 01 '18 14:09

Mostafa Ghadimi


People also ask

What is manifest Webmanifest?

The web app manifest provides information about a web application in a JSON text file, necessary for the web app to be downloaded and be presented to the user similarly to a native app (e.g., be installed on the homescreen of a device, providing users with quicker access and a richer experience).

What is the purpose of manifest JSON?

Using manifest. json , you specify basic metadata about your extension such as the name and version, and can also specify aspects of your extension's functionality (such as background scripts, content scripts, and browser actions).

Do I need the manifest JSON?

Having a manifest is required by Chrome to show the Add to Home Screen prompt. When user installs or bookmark your web application to the homescreen or adds it to an application launcher, manifest. json provides to the browser so that it can treat your website the name, icons, etc.

What is manifest JSON in web?

The web app manifest is a JSON file that tells the browser about your Progressive Web App and how it should behave when installed on the user's desktop or mobile device.


1 Answers

There are no big difference rather than naming. Use whichever you prefer: "/manifest.json" or href="/manifest.webmanifest". Just don't forget that MIME type has to be: application/manifest+json in both cases.

<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.webmanifest"> 

Note that spec says it should be manifest.webmanifest. And later it may be important because it is under heavy development.

For more info check: W3C and MDN

like image 162
Arseniy-II Avatar answered Oct 16 '22 02:10

Arseniy-II