To build a progressive web app, you need a manifest.json file. This is a simple text file with a .json extension.
If you created the file and uploaded correctly, it should be accessible through any method in the browser (eg. script tag, XHR, etc).
I see you are trying to share some code. In order to share the code, you must wrap it in 3 tildes (~) so Markdown doesn’t render it.
“I see you are trying to share some code. In order to share the code, you must wrap it in 3 tildes (~) so Markdown doesn’t render it.” => thank you, I tried with the 3/4 indents from the message editor but I couldn’t.
Where $domain is my host name (I can access it from the link in web browser).
I’ts 100% sure my manifest.json file is OK, I verified it already with Lighthouse on another server and I already downloaded the app, but this is not really related.
I quess regarding my project, there is nothing to do with file sharing, API hosting, database hosting or background tasks/tools, as this is a classic website with WebApp declaration (service worker, images, manifest…).
From what I can see, it looks like manifest is not widely supported yet. It appears it is NOT supported in Chrome, Edge, or Opera, but is fully supported on most mobile browsers (excluding Safari).
I am not overly experienced in the PWA area, but from what I do know, I believe your PWA may have to move to another host, either premium or some static host like GitHub Pages, because neither of these have the security system that is implemented here.
@Greenreader9 my project was working on all my browsers / phones browsers, and now not anymore since I uploaded on infinityfree, so I don’t think so the issue is coming from a set up. Here I meant: it seems some browsers do not print the error in the console.
@wackyblackie as just said here, it was fully supported on all my browsers, but as soon as I uploaded it, it started to bug (manifest not fetched).
“your PWA may have to move to another host, either premium or some static host like GitHub Pages, because neither of these have the security system that is implemented here” => I’ll try this, but already hosting a database on an other server, it means I’ll have this kind of architecture:
webApp server <=> website server <=> database
And this will be a bit weird to handle (regarding security, accesses from cross-origin, etc…)