Skip to main content
Hominid Software — Talks by Doug Reeder

Join the Cool Kids — If You're Allowed! — The Web Share APIs

Abstract

The Web Share API and Web Share Target API allow your web app to send and receive content from native apps, like the big social networking apps. But can these APIs meet your needs?

Delivered to ColumbusJS in March 2024

Bio #

Doug Reeder has been programming professionally for a quarter century on a wide range of technologies, at organizations large and small. Today he does full-stack web development, consults on WebXR, and pushes back on gatekeepers.

Outline #

1974: GUI Copy & Paste #

1996: Palm OS Sharing #

screen shot of VFS Exchange

Video of IR beaming [if time]

2009: Palm webOS Touch-to-share #

Now: Social Media is king #

Enter the Web Share API (send) #

Small signature, complicated use #

File types Chromium on Android will share #

File types Chromium on Android won't share #

Web Share demo apps #

Web Share Target API (receive) #

"share_target": {
    "action": "/create-from-share",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "title",
      "text": "text",
      "url": "url",
      "files": [
        {"name": "files", "accept": ["text/*", "image/*", ".text", ".readme""]}
      ]
    }

Quick review of coding Service Workers #

Web Share Target demo apps #

Can't access full native Sharing API #

App that uses Web Share APIs with fallbacks #

Long-press on summary in list to share

Notes Together

Summary #