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 support for web-share-target API #98

Closed
fs111 opened this issue Mar 22, 2021 · 6 comments
Closed

add support for web-share-target API #98

fs111 opened this issue Mar 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@fs111
Copy link
Contributor

fs111 commented Mar 22, 2021

The web-share-target API allows websites to be the target of a share action on a mobile phone. This works with chrome on android and would allow users of android to save bookmarks via the native sharing feature of the android platform.

documentation about the web-share API can be found here https://web.dev/web-share-target/

I wanted to explore that a bit, if there is interest in it from the upstream project.

@sissbruecker
Copy link
Owner

In general I'm OK with that, as it seems like a rather isolated thing that doesn't change much.

Note that this feature requires the website to be installed as a progressive web application first, which opens up a completely different topic. Adding a web manifest, a service worker, correct offline handling such as a offline fallback page etc.

Note that I started using a pretty nice workaround on iOS by using the integrated automation tool, which allows you to define custom workflows as share targets. In short I just configed a share action that opens the the new bookmark form in Safari while appending the shared URL as URL parameter. I'm 99% sure something similar can be achieved on Android using apps like Tasker or similar. Maybe the more pragmatic solution is to figure out a way on how to accomplish this on Android as well, and then document it in this repo so that other users can benefit from it too.

@fs111
Copy link
Contributor Author

fs111 commented Mar 23, 2021

Thanks for the reply. I actually found an easier way. Following https://paul.kinlan.me/use-bookmarklets-on-chrome-on-android/ I created a bookmark that can actually use the bookmarklet code.

LMK if you want a PR that adds this as a HOWTO to the README.

@sissbruecker
Copy link
Owner

@fs111 Sure, that would be cool. 👍 Can also consider opening a new how-to.md file in the docs folder.

@techducks
Copy link

In my opinion it would be great to add pwa features to the web app. Most people intuitively want to add a url via share menu.

you can also use my shortcut here.

The difference is that it uses the internal linkding api. You can add a url via iOS Share Menue without opening the linkding web application in a safari overlay. There just appears a system popup to add tags.

@sissbruecker
Copy link
Owner

Looks like the share target API still isn't supported in Safari / iOS or Firefox: https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target#browser_compatibility

@sissbruecker
Copy link
Owner

Should be resolved with #630

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

No branches or pull requests

3 participants