Manifest JSON 404 (Not Found) on Ionic CLI : 6.6.0 #21129

console on chrome

Likewise failed to load resource: the server responded with a status of 404 (Not Found)
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

I have manually added a manifest.json <link rel="manifest" href="/ manifest.json"> on ionic and it doesn’t load well. This is happening locally(localhost…). When I install the app on a table or android mobile, it does not install the icon for this reason.

{
"name": "Name",
"short_name": "Name",
"description": "description",
"icons": [
    {
        "src": "assets/icons/x_48x48.png",
        "sizes": "48x48",
        "type": "image/png"
    },
    {
        "src": "assets/icons/x_72x72.png",
        "sizes": "72x72",
        "type": "image/png"
    },
    {
        "src": "assets/icons/x_96x96.png",
        "sizes": "96x96",
        "type": "image/png"
    },
    {
        "src": "assets/icons/x_144x144.png",
        "sizes": "144x144",
        "type": "image/png"
    },
    {
        "src": "assets/icons/x_168x168.png",
        "sizes": "168x168",
        "type": "image/png"
    },
    {
        "src": "assets/icons/x_192x192.png",
        "sizes": "192x192",
        "type": "image/png"
    }
],
"start_url": "/",
"background_color": "#ff6600",
"display": "standalone",
"theme_color": "#ff6600"
}

Did the same here solve the problem?

use this: What happened to the manifest.json in Ionic 4

Yes, Myself.

The manifest.json is modified on the config.xml file.

could you show me how you did it? I could not

Go to config.xml on root

You have all: name, description, author, icon…

1 Like