Skip to content
pubscout

receive_sharing_intent

1.9.0, released 5 months ago by kasem.dev

Receives shared photos, videos, text, and files from other apps.

WASM-ready
$ flutter pub add receive_sharing_intent
Source repository

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.

Works with

Packages commonly used together with receive_sharing_intent: ones it builds on, ones built on it, and its own family.