How to put 2 PWA installable on the same site?

Asked

Viewed 85 times

-1

I own a website Ex: https://www.meusite.com/ This site has an admin Ex: https://www.meusite.com/admin

I want to put 1 app installable for each of the 2 addresses. I put 2 manifest.json with different shortname and name, I even made a serviceworker for each one, not solved..

  • each manifest must have a different scope and start_url configured

  • Thank you for the answer. But both of them are with the same & #Xa; "Scope": "/", "start_url": "/",

  • Sorry dear Gabriel, can’t understand, how so equal? Has to be different the scopes and start_urls of each manifest. Alliances would be better to isolate each "webapp" per folder and the main site not be a webapp, at most use serviceWorker to maintain the index offine to access the webapps

  • Another thing, looking at your questions about pwa causes me the feeling that you are using the concept PWA unnecessarily.

  • Inside the manifest.json file, it has keys.. both files have the same keys.. You had put that you need to put different Scope and start_url...

  • The concept of PWA is correct, but that doubt was not posted.. Surely more people use different apps as in my case.. But thanks for your time..

  • It’s not that, I understand what you want to achieve, but PWA is more than something that works, it’s a lot of concepts, what I want is to guide you on the ideal path, you can turn a bike into a car if you are a reasonable mechanic and make it work, But it’s not really a car... you know? The intention to turn the INDEX/HOME of your site into a PWA seems strange to me, has one thing you want and another thing is if really this is necessary. Another thing, making PWA work does not mean the concept is correct, one thing is "the mechanics" of it, the other thing is the "concept".

  • Another thing, I wasn’t talking about the scopo compared to the start_url, I was talking about the Scope and start_url of the first manifest compared to the second manifest, but all right, I hope that in time I can open your mind, is that I really haven’t seen the codes and the like and so I have no way of knowing what you did to make technical notes. Good luck then.

  • I don’t want to specialize in PWA, just make it work initially. That’s enough. In relation to the 2nd answer, that’s what I answered.. Scope and start_url were the same.

  • Dear Gabriel, you still don’t understand, I’ve already said it’s not about Scope compared to start_url, it’s not whether both are equal, it’s about the 2 manifests ... another thing, it’s not about being an expert, it’s about using when necessary and ideally, make it work by making it work is virtually random, I just want to guide you in the basics anyway, because I noticed this "apparent" confusion when looking at all your questions, but at another opportunity maybe I can elucidate your idea about all this. A hug.

  • I think we are not able to communicate properly, but if you have some reference can pass there for me to improve my knowledge. Thank you

Show 6 more comments

1 answer

-1


Solved.

When you need to have 2 instlaveis apps on the same site, the manifest.json file needs to have 2 names too.

admin-manifest.json and manifest.json

If you have both manifest.json, even in different places, it will not allow you to install 2 apps

Browser other questions tagged

You are not signed in. Login or sign up in order to post.