Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple PWAs in the same domain

Is it possible to host multiple PWAs under same endpoint. Say, I have three different PWAs Under root and then root should host these 3 PWAs in such a way that when I switch to any other apps via link or menu it shouldn't open in different window. Currently, it is getting opened in different window as web app whenever, I am clicking on different app.

Thanks, Rahul

like image 522
rahulsahay19 Avatar asked Jul 11 '18 08:07

rahulsahay19


People also ask

Are PWAs still a thing?

Today, Progressive Web Apps are accessible via smartphones and desktops across a variety of browsers (For iOS users, only Safari can be used to add a PWA to the home screen). PWAs also support many of the same features or functions that native apps support.

Does PWA affect SEO?

But how are PWAs good for SEO? The answer is, no, at least they don't have a direct advantage. But executing a well crafted PWA means you deliver a better user experience, which helps you win at SEO.

Are PWAs faster than native apps?

Progressive web apps load faster, but they run on a third-party browser. This means there will always be chances of latency and significant battery consumption. On the other hand, a native app integrates seamlessly as a part of the smartphone once installed. It can use the hardware and device features better than PWAs.


Video Answer


1 Answers

You may refer with this thread. It stated that you can accomplish this with scoped apps.

Update your manifest files to include a scope parameter with a value of the path that "app" should be served under.

"scope": "/r/aizumap/",

and

"scope": "/r/naramap/",

You can still be able to use a single service worker but each sub app will need to have a trailing / in it's path for the start_url/scope to work.

Here's a sample and a source which might also help.

like image 80
abielita Avatar answered Sep 28 '22 18:09

abielita