- 🇦🇹Austria granik Vienna
Thanks, this feature has been added to dev version, a new release will be done.
Now shariff block is hidden if native share is supported. Automatically closed - issue fixed for 2 weeks with no activity.
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/
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.
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
Custom Block Config would need another checkbox to activate it per block.
Markup/Template has to be adopted (single share button)
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thanks, this feature has been added to dev version, a new release will be done.
Now shariff block is hidden if native share is supported.
Automatically closed - issue fixed for 2 weeks with no activity.