Bug 194593 - Add support for Web Share Target API
Summary: Add support for Web Share Target API
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-13 08:38 PST by Thomas Steiner
Modified: 2019-09-07 10:19 PDT (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Steiner 2019-02-13 08:38:30 PST
Following the implementation of the Web Share API (https://bugs.webkit.org/show_bug.cgi?id=171100), the next logical step could be the implementation of the Web Share Target API (https://wicg.github.io/web-share-target/), which in fact is an extension (https://wicg.github.io/web-share-target/#extension-to-the-web-app-manifest) of Web App Manifest (https://www.w3.org/TR/appmanifest/). 

Companies like Twitter use this already (https://mobile.twitter.com/manifest.json):


```
[...]
"share_target": {
	"action": "compose/tweet",
	"params": {
		"title": "title",
		"text": "text",
		"url": "url"
	}
},
[...]
```
Comment 1 Radar WebKit Bug Importer 2019-02-14 11:16:59 PST
<rdar://problem/48080757>
Comment 2 Filip Bech-Larsen 2019-03-11 12:38:40 PDT
I would love to see this work so webapps can be opened with content like real apps. 

The squoosh.app app uses webshare target-api on Android and it would be so much easier to add an image from an email (or somewhere else), without having to add to the gallery first.

The first step of cause is the text-only version which is better than nothing, but the real deal would be the full formdata version so anything* could be shared.
Comment 3 Mike Watson 2019-03-19 06:24:35 PDT
Adding support for the `Share Target API` will be incredibly useful capability.  

Our app, https://sprout.io, has the need to quickly bookmark and create collections of learning resources from mobile devices.

This is easily done on desktop with extensions, but the `Share Target API` is needed to supported this popular use case on mobile.

Adding support for the `Share Target API` will help democratize access to this share capability for apps of all sizes (even those who lack the budget to develop native apps/share extensions across all platforms).
Comment 4 aarontgrogg 2019-04-10 04:26:40 PDT
Yes, please!  Standardization is huge for developers, but more importantly for users to feel comfortable!
Comment 5 Ernst 2019-04-15 01:43:41 PDT
+1 It will be fantastic to have this.
Comment 6 jonhargett 2019-04-26 20:27:18 PDT
I have an existing Android and iOS app that is an ePub reader. It currently works by "sharing" an epub file with my app and then it is imported in to the app. Would be helpful to make it as a PWA instead. If this feature is implemented with the file support, could import the file in and then store the contents in storage for viewing later.