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

Why is in-browser link navigation a non goal? #9

Open
mgiuca opened this issue May 29, 2020 · 2 comments
Open

Why is in-browser link navigation a non goal? #9

mgiuca opened this issue May 29, 2020 · 2 comments

Comments

@mgiuca
Copy link
Member

mgiuca commented May 29, 2020

Under Non-Goals:

Launching PWAs due to in-browser link navigation. Instead, this explainer focuses on scenarios where the URL activation has occurred from outside of the browser.

Why make this distinction? It seems to unnecessarily distinguish native and web apps as sources. (For example, clicking a link to a native app would trigger the URL handler; clicking a link from a PWA would not.)

Your use case says:

... in their native e-mail application, (eg., https://open.spotify.com/album/7FA9xfqPrBaja1sEv15DU2 in the Outlook app) ...

But if the user was using the outlook.com PWA, this would not work? Why not?

@LuHuangMSFT
Copy link
Collaborator

We initially wanted the focus of this explainer to be on the benefits of having a declarative URL handling API and association scheme. There is no strong reason not to also account for in-browser and in-app-window link navigation but we would have had to detail some intricacies that were not the focus of this explainer.

Eg. If a user deliberately navigates to an in-scope URL of an installed PWA using the address bar, then clicks on a link that is also in-scope, should an app window be opened?

If we remove in-browser link navigation as a non-goal, how much more detail would you like to see about that? Would it be sufficient to leave most of that behavior up to the UA instead of specifying it?

@mgiuca
Copy link
Member Author

mgiuca commented Jun 1, 2020

There is no strong reason not to also account for in-browser and in-app-window link navigation but we would have had to detail some intricacies that were not the focus of this explainer.

Right, but those intricacies (mostly, figuring out whether or not to do link capturing in any of the ~20 different ways to navigate) are not specific to this proposal. I don't think they need to be captured by this proposal (they are common to all of the link capturing discussions, e.g., sw-launch).

This is something that we (Chrome PWA team) have spent an extensive amount of time researching and designing (I'll try and find a link later). I'm not sure if it needs to be part of a spec, or just leave it up to the UA behaviour, but suffice to say it's quite complex and I think it's fine to leave it out of this proposal. I think this proposal should focus just on defining the set of URLs to be link-captured, and leave the actual behavioural requirements around link capturing to the existing efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants