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

add share_target for progressive web app #8238

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

RayBB
Copy link
Collaborator

@RayBB RayBB commented Aug 29, 2023

Closes #8197

This will make it so if someone highlights text on their phone and hit's share they have the option to share it to OL (if they have the PWA installed).

Technical

Just following the guide here: https://developer.chrome.com/en/articles/web-share-target/

"text": "q" is so that the text shared has a q query param which is what our search page uses.

Browser Compatibility

This doesn't work if you "Install" the PWA from FF or Safari but you can happily share from them if you use install the pas via other browsers.
https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target#browser_compatibility

Testing

PWAs need to be installed on https so can we please put this on the OL test env?
However, I created my own PWA to play around with the APIs so I'm confident this will work.

Screenshot

Video of it working on testing!
pwa_share_optimized.mp4

Stakeholders

@Yashs911 and maybe @jimchamp ?

@mekarpeles mekarpeles self-assigned this Aug 29, 2023
@RayBB
Copy link
Collaborator Author

RayBB commented Aug 29, 2023

@mekarpeles it's working great! I added a video to the PR

@mekarpeles mekarpeles merged commit d3a9a03 into internetarchive:master Aug 29, 2023
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

Successfully merging this pull request may close these issues.

Enable sharing to the Progressive Web App (PWA)
2 participants