Site cannot be installed: Page has no manifest <link> URL

Viewed 2311

enter image description here

On Chrome Console it show this error message

I can avoid this by adding manifest link but I don't want to add on each page/layout

Is there any other way to avoid this error ?

2 Answers

Add the manifest to your page Finally, we need to add a link to the manifest in the page. Open work/index.html. Add the following right before the closing </head> tag:

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

Create work name mainfest like below eg.

{
  "short_name": "",
  "name": "",
  "icons": [
  {
    "src":"",
    "sizes": "",
    "type": ""
  }
 ],
 "start_url": "",
 "background_color": "",
 "Theme_color": "",
 "display": ""
}

For more detail reference below Link : Manifest

To Avoid this error I have added below line in layout page

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

I'm posting this if it's can help anyone.

Related