Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would scope_extensions handle this scenario? #46

Open
JudahGabriel opened this issue Nov 24, 2021 · 5 comments
Open

Would scope_extensions handle this scenario? #46

JudahGabriel opened this issue Nov 24, 2021 · 5 comments
Labels
scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md

Comments

@JudahGabriel
Copy link

JudahGabriel commented Nov 24, 2021

A team building a large productivity PWA is encountering the following issue. Will scope_extensions support it?

  1. User installs PWA at home.contoso.com
  2. home.contoso.com asks user to sign in
  3. Upon sign-in, the user is redirected to mycompany.contoso.com
  4. PWA sends a push notification to the user
  5. User clicks the push notification, which navigates to mycompany.contoso.com
  6. BUG: clicking the push notification opens in a new browser tab, rather than in the installed PWA

That last step is the issue. They want users who click that push notification to open in the installed PWA. Instead, today, it's opening in a new browser tab.

Will scope_extensions support this scenario?

@phoglenix phoglenix added the scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md label Nov 25, 2021
@alancutter
Copy link
Collaborator

Yes by virtue of extending the app's scope to include that other origin.

@jaroslawdabrowski
Copy link

@JudahGabriel how did you manage to make 1-5 work? We have a multi tenant web application for which we would like start develop mobile apps using pwa. Of course we would like to have only one app, not for every tenant. We have the root domain that is being used as a starting point and it can direct users to their instances. This works fine for ios using allowedOrigins, works fine from android using additionalTrustedOrigins, but I cannot make it work for windows. There is no such configuration option for windows and I get the address bar for my domains outside the root domain. I was trying to use url_handlers and scope_extensions in my manifest, but none of that worked out. Can you please help me with this?

@JudahGabriel
Copy link
Author

@jaroslawdabrowski

We haven't made that scenario work, because scope_extensions are not yet standardized. There may be a trial origin you can enable for your web app to get access to scope_extensions today. I'll email you privately.

@sertxudev
Copy link

We have a multi-subdomain internal web application (4 businesses with one subdomain each) under a domain that manages the users and sessions.

Example:

  • intranet.webapp.test (Login)
  • A.intranet.webapp.test (Business A)
  • B.intranet.webapp.test (Business B)
  • C.intranet.webapp.test (Business C)
  • D.intranet.webapp.test (Business D)

We're looking forward to being able to install a PWA for the Login app and redirect our users to each business app without them noticing.

We're hopping scope_extensions will solve this problem.

@jaroslawdabrowski
Copy link

@sertxudev we are trying the same scenario and also hope that scope_extensions will solve our issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-extensions https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
Projects
None yet
Development

No branches or pull requests

5 participants