-
Notifications
You must be signed in to change notification settings - Fork 26
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
I've been playing around with this and so far so good, but... #90
Comments
The non-goals section of the explainer’s second item is:
The link goes to a proposal that says it was obsoleted by this proposal, which is pretty confusing! However it also has a link to a google doc, PWA Link Capturing and URL Handling: The New Taxonomy (last updated 2021-07-15 at the time of writing this), which says:
(italics mine) If I’m reading that right, it’s been intentionally omitted and left as a user-agent-defined behavior. But the web-app-launch explainer also has a “link capturing” link that points at a different proposal for declarative link capturing, Web App Link Handling Manifest Options which contradicts (or updates? but you have to check the dates to work that out) the google doc. That proposal would introduce a new manifest member, It’s tough to sort out what the current story is based on the readme here because of the (seemingly) circular obsoletion, conflicting info, and the similar names used for the proposals. Since it looks like Web App Link Handling Manifest Options is exactly what we’re looking for, though, hopefully that proposal is considered current and the explainers for Web App Launch Handling and the old Declarative Link Capturing are just out of date? |
I'm glad I'm not the only confused one here :) |
Oops! This spec really shouldn't be linking to a spec that literally says "This API proposal is obsolete in favor of launch_handler." I'll fix that up. Yes this is intended to be a user agent feature, it currently exists on Chrome OS (the user can set a preference to always open links in an app) and your app will be launched and receive LaunchParams. |
(Edge has implemented |
I know this is named launchParams, but I was really hoping this would be able to get any navigation (even from other windows) and let me decide if they should open in my app or not.
What if someone clicks on a link to the app from another website, or I want to support integration with other platforms?
If those links are crafted to go to different parts of my website.
So for instance, I have an installed pwa on http://localhost right now. Clicking this link here doesn't open the app. I think it should.
I wouldn't mind using the serviceworker for this. It would be really nice if there were an event that I could capture the navigation and either direct the load to the app (and be able to safely focus the window to the front) or let it continue in a new tab.
The text was updated successfully, but these errors were encountered: