The manifest.json ought to be on top level?
The ionic starter for V2 now creates a broken configuration:
- The default manifest.json icon path is broken
An error when testing in Chrome (desktop):
the manifest ends up pointing at assets/assets/imgs/logo.png
Created by the starter:
{
"name": "Ionic",
"short_name": "Ionic",
"start_url": "index.html",
"display": "standalone",
"icons": [{
"src": "assets/imgs/logo.png",
"sizes": "512x512",
"type": "image/png"
}],
"background_color": "#4e8ef7",
"theme_color": "#4e8ef7"
}
Solution: remove assets/ from the icon path.
-
Add to homescreen from Chrome dev tools - result: unable to launch from the icon:
Cannot GET /assets/index.html
Quick solution: add
"scope": "/",
to the manifest.json
Have not tested thoroughly yet these, so try with caution.
Seems as both of the issues are related to the change of moving the manifest.json to assets.