mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-21 14:00:26 -05:00
[GH-ISSUE #252] Receive links shared from others apps using PWA Web Share Target API #4520
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ni554n on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/252
Cobalt is the perfect app to use this API and it's pretty straightforward to implement. Currently, it only supports Chrome-based browsers, but as it'll save several clicks, I think it's worth it to consider.
Receiving shared data with the Web Share Target API
Share data between apps
manifest.share_target
@wukko commented on GitHub (Nov 22, 2023):
receiving doesn't work for anything but android chrome, but even then their own sample pwa never worked properly on my android phone. i would love to do it, but it's simply impossible for now :(
@Mattis142 commented on GitHub (Mar 16, 2024):
I know I have said this before on Twitter but maybe it'd be better on here for tracking requests but could you please check again if it works for you now? because the demo they supplied certainly works for me
Android 14 (AP21.240216.010)
Chrome version 122.0.6261.119
Webview Version 123.0.6312.40 (631204042)
if you throw a URL at it, it simply works


@yerrak00 commented on GitHub (Mar 26, 2024):
@wukko I was able to get it to work with my phone and PC, I opened up PR #404 for it.
One thing I found weird was how Chrome on Android sends the URL via the text field, whileas Edge on Windows sends the URL via the URL field in the share body, so in the manifest I just mapped both fields to the
uquery parameter, so that we always get one value or the other when sharing to cobalt.