Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Building multiple Progressive Web Apps on the same domain

I am wanting to have two progressive web apps for a domain www.xyz/user1.com and www.xyz/user2.com.

I have tried to do this in each of the user1 and user2 HTML files:

<script>
    if ('serviceWorker' in navigator) {
        navigator.serviceWorker
            .register('/sw.js'), {
                scope: '/'
            }
                .then(() => {
                    console.log('Service worker registered');
                })
                .catch(err => {
                    console.log('Service worker registration failed: ' + err);
                });
    }
</script>

As well as creating two separate manifest.json files with:

{
  "short_name": "User 1",
  "name": "User 1",
  "icons": [
    {
      "src": "/img.png",
      "type": "image/png",
      "sizes": "512x512"
    }
  ],
  "start_url": "/?source=pwa",
  "display": "standalone",
  "theme_color": "#fff"
}

This does not work as when I download the PWA from one domain, the other domain just wants to open with that PWA - e.g. when I download User1, I can then only open User2 with User1 whereas I want these as two separate apps. Any help would be appreciated!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!