Add support for Web Share Target API
See original GitHub issueIt is possible to register a PWA (WebAPK) as share target (it happens automatically if share_target
is specified in manifest.json
) but it does not seem to be supported in TWA at the moment.
This is a huge bummer for us because share data with our PWA/TWA is a central feature.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:22 (5 by maintainers)
Top Results From Across the Web
Receiving shared data with the Web Share Target API
The Web Share Target API allows installed web apps to register with the underlying operating system to receive shared content.
Read more >Web Share API - MDN Web Docs - Mozilla
The Web Share API provides a mechanism for sharing text, links, files, and other content to an arbitrary share target selected by the...
Read more >Web Share Target API - W3C on GitHub
This specification defines an API that allows websites to declare themselves as web share targets, which can receive shared content from ...
Read more >194593 – Add support for Web Share Target API
Adding support for the `Share Target API` will help democratize access to this share capability for apps of all sizes (even those who...
Read more >Web Share Target API Explained - GitHub
Web Share Target is a proposed web API to enable a web site to receive shared data from other sites or apps. Many...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Two and a half months and a PR later and still there is no progress on this. We cannot release our app, because its main benefit is being a share-target, which works absolutely great as a PWA. But our customers demand an app (and we want to have the benefits of being listed in the Play Store).
I am a bit baffled that we seem to be the only ones desperately missing this feature.
I don’t want to sound pi**ed or blame anyone for anything, but I need a perspective going forward. Had I known 2.5 months ago, that support for WebShareTargetV2 is not coming for months, I would have decided to use Cordova or write a wrapper on my own.
It would be great if you could just give me feedback, whether you plan to work on this in the next couple of weeks. I would love to help out (more), but my knowledge of the inner workings of this project and androidx is at its limit. 😃
@andreban I noticed that
share_target.params.files
is required inmanifest.json
(I believe this should be optional). Adding that,shareTarget
is correctly added to twa-manifest.json using @bubblewrap/cli@1.8.0.However, after installing the app on my phone I still can’t share to it. When I install the app as a PWA from Chrome, it works fine.