flutter_broadcasts
一个用于通过 Android 意图和 iOS 通知发送和接收广播的插件。
一个用于通过 Android 意图和 iOS 通知发送和接收广播的插件。
{"sdk":"flutter"}{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
https://img.shields.io/pub/v/flutter_broadcasts
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.
First install the package via pub.dev. Then subscribe to broadcasts like this:
BroadcastReceiver receiver = BroadcastReceiver(
names: <String>["de.kevlatus.broadcast"],
);
receiver.messages.listen(print);
receiver.start();
This package is currently under construction. Below you can find a quick overview of its implementation status. Contributions are welcome, if you are missing features.
Contributions are much appreciated, but keep in mind that this package is supposed to be generic and only expose native broadcast APIs like Android's BroadcastReceivers and the iOS NotificiationCenter. Consider creating separate packages for sending and receiving specific broadcast instances.
If you have any ideas for extending this package to other platforms, feel free to open a pull request or raise an issue.