John Davidson

php - "No manifest detected", what am i missing?

0 comments
Message:


Hellooo,


I'm trying to build a PWA, but my manifest is not detected.
I put it at the root of my project.


It contains


    {
    "name": "MiniSysteme",
    "short_name": "MiniSys",
    "start_url": "/index.php",
    "display": "standalone",
    "background_color": "#FFE9D2",
    "theme_color": "#FFE1C4",
    "orientation": "portrait-primary",
    "icons": [
        {
            "src": "/img/icons/icon-72x72.png",
            "type": "image/png",
            "sizes": "72x72"
        },
        {
            "src": "/img/icons/icon-96x96.png",
            "type": "image/png",
            "sizes": "96x96"
        },

and i added this line in the head of my index.php


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

The page is constructed via MVC structure. The index.php call the viewHeader.php
via require("view/viewHeader.php"); which contain the link to the manifest file.


Do you think that structure leads to a problem over the fetch manifest system ?


project structure


SOLUTION :
The problem was an invisible character between link et rel in the tag ! Crazy but real. Now the manifest is detected and the tags remain in the . This invisible character or bad space was breaking the head and opening the body.



My Answer:
PHP is a server-side scripting language that is commonly used for web development. It can be embedded into HTML code and is often used to create dynamic web pages. PHP stands for Hypertext Preprocessor and is open source, meaning it is free to use and modify. It is a popular choice for building websites and web applications due to its ease of use and wide range of functionality.

Rate this post

4 of 5 based on 8650 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us