pusher_beams
1.1.2, released 2 years ago by pusher.com
Official Flutter Plugin for Pusher Beams to receive push notifications.
What it does
Allows Flutter applications to receive push notifications across Android, iOS, and Web using Pusher Beams. Provides methods for managing device interests, setting user IDs, and handling foreground messages or initial messages.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using Pusher Beams as your push notification backend.
- You need interest-based or user-specific push notifications on Android, iOS, and Web.
Skip it when
- You are using Firebase Cloud Messaging directly or another notification backend like OneSignal.
- You only need local notifications without a remote backend.
Strengths
- Official plugin supporting Android, iOS, and Web.
- Supports device interests and user ID targeting.
- Federated plugin architecture.
Weaknesses
- Requires platform-specific configuration (e.g., Firebase google-services.json for Android, APNs for iOS, service worker for Web).
- Some methods like `onInterestChanges` or `setUserId` are not supported on Web.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 5
Requires a Pusher Beams account, Firebase setup with google-services.json for Android, APNs configuration for iOS, and a service-worker.js file for Web.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await PusherBeams.instance.start('YOUR INSTANCE ID');
runApp(MyApp());
}Alternatives
Packages that do the same job and could replace pusher_beams.
- onesignal_flutter
Choose OneSignal if you want an alternative push notification service provider with its own Flutter SDK and feature set.
82Compare - firebase_messaging
Choose firebase_messaging if you want to handle push notifications directly through Firebase Cloud Messaging rather than Pusher Beams.
99Compare
Works with
Packages commonly used together with pusher_beams: ones it builds on, ones built on it, and its own family.