Native Share (Web Share API)

Demo to preview the plugin:

Introduction

The Native Share (Web Share API) plugin lets you trigger your device’s built-in share dialog directly from Bubble workflows, allowing users to share text, URLs, or both with other apps (e.g., WhatsApp, Twitter, or Email).
It’s designed to make sharing content on mobile devices fast, intuitive, and native, without relying on external APIs or complicated integrations.
If a browser does not support the Web Share API, the plugin automatically triggers an event so you can run an alternative workflow (such as showing a “copy link” popup).
Key Features

Prerequisite(s)

Before using the plugin:
  • You must have a Bubble application set up.
  • Your users must be accessing your app via a browser that supports the Web Share API (e.g., Chrome, Safari, Edge on mobile).

Image without caption

How to setup

Step 1. Install the Plugin

Step 2. Add the Plugin Element to Your Page

Step 3. Add the Action to Your Workflow

Step 4. Preview and test

Plugin Element - Native Share

This plugin provides a single action (Share) that interacts directly with the browser’s Web Share API to send text, titles, and URLs to native sharing targets (social apps, messaging apps, email clients, etc.).
Image without caption

Element Actions

  • Available Action: Share
Image without caption
Title
Description
Type
Title
Defines the title displayed at the top of the native share sheet. This is optional but improves context (e.g., “Check this out!”).
Text
Text
The message or body text you want users to share. This can be static or dynamically generated (e.g., “Invite your friends to try our app!”).
Text
URL
The link you want shared. Important: Ensure it starts with https:// for browser compatibility. Can be dynamic, e.g., Current Page URL.
Text
Behavior:
  • The action calls the device’s native share interface.
  • On successful share, the “Content Shared successfully” event is triggered.
  • If unsupported (desktop browsers, older versions), the “Browser not supported” event fires, allowing you to show an alert or run alternative logic.

Element Events

Title
Description
Content Shared Successfully
Triggered when the content is successfully shared using the device’s native share sheet.
Browser Not Supported
Triggered when the user’s browser doesn’t support the Web Share API, enabling a fallback workflow (e.g., copy to clipboard, show message).
Image without caption

Changelogs