Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 83c2bdc

Browse files
[React C#] Change web app manifest extension to “webmanifest” (#80)
* Change web app manifest extension to “webmanifest” * Update Web App Manifest comment - Web apps can be installed on more devices than just Android. All relevant desktop and mobile operating systems are supported (depending on the browser). That’s why I propose to use “installed” instead of “added to the homescreen”, which is a mobile-only metaphor. - The URL has changed.
1 parent 13e9a2d commit 83c2bdc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/content/React-CSharp/ClientApp/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,13 +1704,13 @@ option in the `SWPrecacheWebpackPlugin` section of
17041704
### Progressive Web App Metadata
17051705
17061706
The default configuration includes a web app manifest located at
1707-
[`public/manifest.json`](public/manifest.json), that you can customize with
1708-
details specific to your web application.
1707+
[`public/manifest.webmanifest`](public/manifest.webmanifest), that you can
1708+
customize with details specific to your web application.
17091709
17101710
When a user adds a web app to their homescreen using Chrome or Firefox on
1711-
Android, the metadata in [`manifest.json`](public/manifest.json) determines what
1712-
icons, names, and branding colors to use when the web app is displayed.
1713-
[The Web App Manifest guide](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/)
1711+
Android, the metadata in [`manifest.webmanifest`](public/manifest.webmanifest)
1712+
determines what icons, names, and branding colors to use when the web app is
1713+
displayed. [The Web App Manifest guide](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/)
17141714
provides more context about what each field means, and how your customizations
17151715
will affect your users' experience.
17161716
@@ -1836,7 +1836,7 @@ service worker navigation routing can be configured or disabled by
18361836
and [`navigateFallbackWhitelist`](https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp)
18371837
options of the `SWPreachePlugin` [configuration](../config/webpack.config.prod.js).
18381838
1839-
When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at [`public/manifest.json`](public/manifest.json) and change `start_url` to match the required URL scheme, for example:
1839+
When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at [`public/manifest.webmanifest`](public/manifest.webmanifest) and change `start_url` to match the required URL scheme, for example:
18401840
18411841
```js
18421842
"start_url": ".",

src/content/React-CSharp/ClientApp/public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<meta name="theme-color" content="#000000">
77
<base href="%PUBLIC_URL%/" />
88
<!--
9-
manifest.json provides metadata used when your web app is added to the
10-
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
9+
manifest.webmanifest provides metadata used when your web app is
10+
installed. See https://web.dev/add-manifest/
1111
-->
12-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.webmanifest">
1313
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
1414
<!--
1515
Notice the use of %PUBLIC_URL% in the tags above.

0 commit comments

Comments
 (0)