@capgo/capacitor-share-target
Enable your app to receive text, images, and files shared from other apps
The Capacitor Share Target plugin allows your app to receive shared content from other applications, making it a share target for text, images, videos, and other file types.
Key Features
- Universal Sharing - Receive content shared from any app
- Multiple Content Types - Handle text, images, videos, and files
- Cross-Platform - iOS and Android support
- Event-Based - Listen for share events in real-time
- Flexible Configuration - Customize accepted MIME types
Installation
npm install @capgo/capacitor-share-targetnpx cap syncPlatform Support
- iOS: Full support with Share Extension
- Android: Full support with intent filters
- Web: Not supported (requires native integration)
Use Cases
- Social Media Apps - Receive shared photos and text
- Note-Taking Apps - Capture shared content quickly
- File Managers - Accept files from other apps
- Messaging Apps - Handle shared media and links
- Bookmark Managers - Save shared URLs
API Overview
The plugin provides:
- Event listener for received shares
- Support for text and file content
- Metadata extraction (title, MIME type)
- Multiple file handling
Next Steps
Get started with the Getting Started guide to integrate share target functionality into your Capacitor app.