Multiple PWAs in the same domain
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 thestart_url/scope
to work.
You can have multiple PWA when you can
1) Split the app into multiple web app to have one Manifest.json and one service worker for each of them.
2) Host it under different URL
- Say https://example.com/myFirstApp/ and
- https://example.com/myOtherApp/ - Place Manifest and SW under each of these path.
You can't have more than one PWA when you have only one Manifest and one SW registered for one path, as these two things essentially defines a unique PWA with a unique scope(URL under which the app is accessible)