Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Mobile Native Share

101 sites Security covered Drupal 10–11
View on drupal.org

This module adds a native share button to your Drupal content, allowing users to easily share it using their device's native sharing options. It uses modern web technology when available and provides fallbacks for older browsers.

Mobile Native Share adds a native share button to Drupal entities, leveraging the Web Share API with graceful fallbacks for unsupported browsers.

Features

  • Provides a configurable share button for multiple entity types.
  • Works out of the box with nodes, taxonomy terms, and comments.
  • Extendable to additional entity types (e.g. paragraphs or custom) via hook_mobile_native_share_entity_types_alter.
  • Graceful fallback logic - uses Web Share API when available, falls back to Clipboard API or prompt dialog otherwise
  • Configurable title and description per bundle of entity.
  • Global configuration for icon and style.
  • Token support for dynamic values in titles and descriptions.
  • Theme suggestions for entity type and bundle, allowing easy template overrides.

Developer API

The module provides a dedicated, heavily optimized rendering service (mobile_native_share.renderer). Developers can easily inject this service via Dependency Injection or call it directly via the \Drupal wrapper to generate the share button programmatically for custom blocks, controllers, or bespoke routes:

// 1. Render using a specific entity (node, term, etc.)
$share_button = \Drupal::service('mobile_native_share.renderer')->render($entity);

// 2. Or render without an entity (will automatically fallback to the current page title and URL)
$share_button = \Drupal::service('mobile_native_share.renderer')->render();

Configuration

  1. Navigate to Configuration → Search and metadata → Mobile Native Share or go directly to /admin/config/search/mobile-native-share.
  2. Enable the share button for the required entity types and bundles.
  3. Configure display options:Title and Description per entity/bundle (supports tokens), global Icon and Style settings.
  4. Adjust display modes to control where the share button appears.

Use cases

  • Add a native share button to articles, taxonomy pages, or comment threads.
  • Extend sharing to custom entities like paragraphs or bespoke content types.
  • Ensure consistent UX across modern and legacy browsers.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Nov 2025
Latest release
2 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.1 Stable 10–11 Jun 28, 2026
1.2.0 Stable 10–11 Jun 20, 2026
1.x-dev Dev 10–11 Dec 19, 2025
1.1.0 Stable 10–11 Dec 10, 2025
1.1.x-dev Dev 10–11 Nov 26, 2025