receive_sharing_intent
1.9.0, released 5 months ago by kasem.dev
Receives shared photos, videos, text, and files from other apps.
What it does
Enables Flutter applications to receive sharing intents from other apps, such as photos, videos, text, URLs, and arbitrary file types. It supports Android intents and iOS Share extensions with automatic redirection or a custom compose UI.
AI-written summary of version 1.9.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Your app needs to accept shared content or files sent from external apps like the system gallery or browser.
- You want to build an iOS Share extension alongside your Android sharing setup.
Skip it when
- You only need to share data outward to other apps rather than receive incoming items.
Strengths
- Supports multiple file types including images, videos, text, URLs, and raw files.
- Provides both stream-based listeners and initial media fetching.
- Handles both Android intent filters and iOS Share extensions.
Weaknesses
- Requires manual native setup for both Android Manifest and iOS target extensions.
- iOS setup requires Swift Package Manager configuration and creating a Share Extension target.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 1
Requires adding intent filters in AndroidManifest.xml, creating an iOS Share Extension target in Xcode, enabling Swift Package Manager, configuring App Groups, and writing custom platform integration code like SceneDelegate and ShareViewController.
ReceiveSharingIntent.instance.getInitialMedia().then((value) {
// Handle initial shared media
});
ReceiveSharingIntent.instance.getMediaStream().listen((value) {
// Handle incoming shared media while app is running
}, onError: (err) {
// Handle error
});Alternatives
Packages that do the same job and could replace receive_sharing_intent.
- listen_sharing_intent
Flutter plugin to receive shared photos, videos, text, URLs, or files from other apps.
57Compare - desktop_drop
Receive dragged files, directories, text, and URLs into Flutter apps
93Compare - flutter_sharing_intent
Receive shared photos, videos, text, and files from other apps.
76Compare - in_app_update
Triggers official Google Play In-App Updates on Android devices.
81Compare
Works with
Packages commonly used together with receive_sharing_intent: ones it builds on, ones built on it, and its own family.