Hi,
purpose of my project is to achieve "add to homescreen" functionality. In that process I have created manifest.json with all the necessary specs (as attached) and referred the manifest file in the index.html (root template), but after launching the app and looking in the "dev tools->application->manifest" it's displaying error as attached. The manifest file is created in the src folder of the application on same level as the index.html. Any help about , why it errors, would be highly appreciated. I tried hard to fix the issue but no luck!
manifest.json file:
{
"short_name": "Genworth",
"name": "Genworth.com",
"icons": [
{
"src": "/assets/images/rateexpress128.png",
"type": "image/png",
"sizes": "128x128"
},
{
"src": "/assets/images/rateexpress144.png",
"type": "image/png",
"sizes": "144x144"
}
],
"start_url": "/",
"background_color": "#ffffff",
"display": "standalone",
"scope": "/",
"theme_color": "#fff"
}
Index.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Testproject</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="manifest" href="/src/manifest.json">
</head>
<body>
<app-root></app-root>
</body>
</html>
Thanks
Srinivas