Support for Web Share API

Created on 12 January 2021, over 3 years ago
Updated 6 July 2023, 12 months ago

Problem/Motivation

The Web Share API landed in multiple Browsers for Mobile devices. With it a user can call the native share system of the Smartphone.
It would be a great Feature for Shariff, if we could get that feature as a setting.
Default should be off, so it will noch change the behavior of already in place Shariff Blocks.

Description of the API wit Demo:
https://css-tricks.com/how-to-use-the-web-share-api/

Proposed resolution

Add a button in the block config "support native OS sharing".
If this is set and a user browse the website on a supported smartphone/browser, instead of showing the shariff buttons, a share button is displayed which can then trigger the native sharing.

Remaining tasks

Create a share icon for the Button which is free to use
Create a Prototype (Add JS to the Module, Change Markup)
Test
Create a Patch

User interface changes

Custom Block Config would need another checkbox to activate it per block.
Markup/Template has to be adopted (single share button)

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria Grienauer Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024