This is great to see some work happening in this space. As a user, it is
a main pain point that I have to copy-paste urls when I want to share
something over my added to homescreen email client.
Looking at the current proposal, I am surprised to see that only a
boolean will be added to the manifest. Shouldn't the Manifest be aware
of the type of data that the application can handle? I believe that it's
possible to share a lot of different things and if we want web
applications to participate in the native share intent UI, we should
make sure they do not appear all the time but only when they will do
something with the information they received. How do you plan to handle
this?
-- Mounir
On Thu, 8 Dec 2016, at 06:09, Matt Giuca wrote:
> *Contact emails*
> {mgiuca,sammc,benwells,
owencm}@chromium.org,
const...@google.com
>
> *Spec*
>
https://github.com/WICG/web-share-target/blob/master/docs/interface.md
>
> *Design doc:*
>
https://docs.google.com/a/chromium.org/document/d/19E6s2m18uL87BqgQdr773GMfdr5Os40aw4asbh0xxrY/edit
>
> *Summary*
> *Motivation*
> Progressive Web Apps [5] are websites that exhibit behaviours of native
> applications, such as offline capabilities. One missing feature is the
> ability to receive shared data, such as URLs. The user can share text and
> URLs from any application to any native social networking, mail, or chat
> app on Android (for example). A similar app for the web cannot
> interoperate
> with the share system, instead requiring the user to manually copy,
> launch
> the app, and paste. (This manual approach often leads to non-canonical
> URLs
> being shared, such as mobile-specific URLs or detritus query/fragment,
> which can be avoided with a dedicated Share API.)
>
> The Web Share Target API fills that gap, allowing installed web apps to
> be
> targeted with a single tap. On some platforms, Web Share Target is
> required
> to bootstrap the Web Share ecosystem if there are no native share
> targets.
>
> [5]
https://developers.google.com/web/progressive-web-apps/
>
> *Interoperability and Compatibility Risk*
> Since Web Share Target is an entirely passive API, there is minimal
> compatibility risk. There are no methods that sites will be calling which
> may be absent on non-conforming browsers. It’s just a manifest attribute
> that may be ignored by non-conforming browsers.
>
> If we later decide to un-ship this feature, it will stop working, but it
> won’t break any sites.
>
> No public support from other browser vendors but have had some private
> discussions with Mozilla and we were encouraged to switch to an API
> closer
> to Mozilla’s Social API [6], which should simplify the interop with
> Firefox.
>
> We intend to run an Origin Trial [7] once the initial implementation is
> complete to allow us to assess the API design. We are not yet announcing
> an
> intent to ship.
>
> [6]
>
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Social_API/Manifest
> [7]
https://github.com/jpchase/OriginTrials
>
> *Ongoing technical constraints*
> Parts of the Web Share Target implementation would assume certain
> OS-specific features such as Android intents. However, the API
> specification will not be Android-specific, and the web-to-web sharing
> system will be common to all platforms.
>
> This API will introduce new UI surfaces on some platforms (for the picker
> UI) which represents an ongoing surface area and implementations across
> multiple platforms.
>
> *Will this feature be supported on all six Blink platforms (Windows, Mac,
> Linux, Chrome OS, Android, and Android WebView)?*
> Eventually, but since this requires platform-specific UI, we will start
> with toolkit-views on Desktop (Windows, Linux and Chrome OS) and proceed
> from there.
>
> This will also necessitate extending the existing implementation of Web
> Share (currently Android-only) to Desktop (since Web Share Target on
> Desktop can only receive shares from other websites).
>
> *OWP launch tracking bug*
>
https://crbug.com/668389
>
> *Link to entry on the feature dashboard*
>
https://www.chromestatus.com/features/5662315307335680
>
> *Requesting approval to ship?*
> No.
>
> --
> --
> Chromium Developers mailing list:
chromi...@chromium.org
> View archives, change email options, or unsubscribe:
>
http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
chromium-dev...@chromium.org.