Skip to content
pubscout

flutter_broadcasts

0.4.0, released 3 years ago by kevlatus.de

A plugin for sending and receiving broadcasts with Android intents and iOS notifications.

WASM-ready
$ flutter pub add flutter_broadcasts
Source repository

What it does

A plugin for sending and receiving broadcasts with Android intents and iOS notifications. The API is inspired by Android's BroadcastReceivers and uses the NotificationCenter internally on iOS.

AI-written summary of version 0.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to handle Android broadcast intents inside a Flutter application
  • You want to subscribe to native message streams using a BroadcastReceiver-inspired API

Skip it when

  • You need full iOS NSNotificationCenter support immediately, as it is not yet implemented
  • You are looking for traditional push notifications via Firebase

Strengths

  • Familiar API design for developers coming from Android's BroadcastReceiver
  • Stream-based messages integration for easy listening

Weaknesses

  • iOS NSNotificationCenter subscriptions and notifications are not yet implemented
  • Package is currently under construction

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Install via pub.dev and instantiate BroadcastReceiver with desired names.

BroadcastReceiver receiver = BroadcastReceiver(
  names: <String>["de.kevlatus.broadcast"],
);
receiver.messages.listen(print);
receiver.start();

Alternatives

Packages that do the same job and could replace flutter_broadcasts.