Web Share API test

Remember a while back I wrote about some odd behaviour with the Web Share API in Safari on iOS?

When the share() method is triggered, iOS provides multiple ways of sharing: Messages, Airdrop, email, and so on. But the simplest option is the one labelled “copy”, which copies to the clipboard.

Here’s the thing: if you’ve provided a text parameter to the share() method then that’s what’s going to get copied to the clipboard—not the URL.

That’s a shame. Personally, I think the url field should take precedence.

Tess filed a bug soon after, which was very gratifying to see.

Now Phil has put together a test case:

  1. Share URL, title, and text
  2. Share URL and title
  3. Share URL and text

Very handy! The results (using the “copy” to clipboard action) are somewhat like rock, paper, scissors:

  • URL beats title,
  • text beats URL,
  • nothing beats text.

So it’s more like rock, paper, high explosives.

Have you published a response to this? :

Responses

2 Likes

# Liked by Oliver Ash on Friday, April 10th, 2020 at 11:19am

# Liked by Lucid00 on Friday, April 10th, 2020 at 5:10pm

Previously on this day

1 year ago I wrote Split

Materials and tools; client and server; declarative and imperative; inclusion and privilege.

3 years ago I wrote Getting griddy with it

CSS Grid Layout is so hot right now.

5 years ago I wrote 100 words 019

Day nineteen.

9 years ago I wrote Botonomy

What if we had a Singularity and nobody showed up?

10 years ago I wrote Seattle Apart

Another excellent event apart.

12 years ago I wrote Spaces

It’s the small things that irritate and delight.

13 years ago I wrote Conceptual and photographic art in Brighton

An SMS-based adventure game plus an exhibition by our local Flickrstar.

13 years ago I wrote Machine Tags of Loving Grace

Revish sets the tagging machinery in motion.

15 years ago I wrote The campaign trail of destruction

Even before the election was announced, the Tories had been actively peddling their particular breed of populism.

17 years ago I wrote Live from Baghdad

"Men, we have got to find Saddam Hussein."

18 years ago I wrote The Mirror Project

Needless to say, while I was in Paris, I took the obigatory photograph in the bathroom mirror at the hotel.

18 years ago I wrote City of Love

I’m back from Paris.