I have my localhost server running at root
folder and my webapp
folder lies inside this root
folder.
http://127.0.0.1:8887/ -> root
http://127.0.0.1:8887/webapp -> root/webapp
The webapp
contains it's index.html
which links to manifest.json
file in same folder like this.
<link rel="manifest" href="./manifest.json">
The manifest file of webapp
is not being detected by Chrome in this setup.
manifest.json
is detected only if localhost server is started at webapp
folder.
http://127.0.0.1:8887/ -> webapp
I want it work other way, how to do that?
mainfest.json
{
"name": "Web app",
"short_name": "Web app",
"icons": [{
"src": "icons/icon-128x128.png",
"sizes": "128x128",
"type": "image/png"
}, {
"src": "icons/icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
}, {
"src": "icons/icon-152x152.png",
"sizes": "152x152",
"type": "image/png"
}, {
"src": "icons/icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}, {
"src": "icons/icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
}],
"start_url": "/webapp/",
"scope":"/webapp/",
"display": "standalone",
"background_color": "#3E4EB8",
"theme_color": "#2F3BA2"
}