unifiedpush
6.2.0, released a year ago by unifiedpush.org
Library to subscribe and receive push notifications using the UnifiedPush system.
What it does
It registers the app with a UnifiedPush distributor, receives encrypted push messages and decrypts them automatically, and supports background handling on Linux. It also provides APIs to manage distributors and endpoints.
AI-written summary of version 6.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need push notifications without tying to a specific vendor like Firebase
- Your app runs on Android and/or Linux and wants to let users choose a distributor
- You require automatic decryption of Web Push messages
Skip it when
- You only target iOS or web platforms
- You prefer a simple local‑notification solution
- You don't want to manage an external distributor app
Strengths
- Cross‑platform (Android & Linux) support
- No vendor lock‑in, works with any UnifiedPush distributor
- Handles decryption of Web Push payloads automatically
- Allows user‑chosen distributor
Weaknesses
- Requires an external distributor app to be installed
- Setup can be complex (native Android config, Linux DBus options)
- Limited to Android and Linux; no iOS/web support
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Add LinuxOptions when initializing, configure Android distributor (or embed one), ensure required permissions, may need dependency_overrides for webcrypto on Linux builds
void init(List<String> args){final linuxOptions=LinuxOptions(dbusName:'com.example',storage:MyStorage(),background:args.contains('--unifiedpush-bg'));UnifiedPush.initialize(onNewEndpoint:onNewEndpoint,onMessage:onMessage,linuxOptions:linuxOptions).then((registered){if(registered)UnifiedPush.register('myInstance');});}Alternatives
Packages that do the same job and could replace unifiedpush.
- firebase_messaging
Standard Firebase Cloud Messaging integration with broad platform support
99Compare - flutter_local_notifications
Local notification handling without external distributor
96Compare - onesignal_flutter
Push service with its own backend and easy setup
82Compare