push
3.3.3, released 2 years ago by orth.uk
Push notifications in Flutter without firebase_messaging for Android, iOS and macOS.
What it does
Handles push notifications including background notifications, alert notifications, and notification taps across Android, iOS, and macOS. Allows avoiding Firebase on iOS and macOS by using APNs directly.
AI-written summary of version 3.3.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You do not or cannot use Firebase Messaging (FCM) on iOS
- You need push notifications on Android, iOS, and macOS with consistent behavior
- You want to handle push notifications when the app is in the foreground, background, or terminated
Skip it when
- You are already using firebase_messaging and have no issues with it
- You need advanced FCM-specific features like FCM message IDs or sender fields
Strengths
- Avoids using Firebase on iOS and macOS
- Consistent behavior between iOS and Android
- Handles push notifications in foreground, background, and terminated states
Weaknesses
- Lowest common denominator API due to platform differences
- Setup is more difficult than standard packages due to native configuration requirements
- Does not provide FCM message IDs or sender fields on platforms that do not use FCM
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 1
Requires native configuration such as adding google-services.json for Android, Apple Developer Program membership for iOS/macOS push keys, and specific delegate forwards in macOS AppDelegate.
Push.instance.registerForRemoteNotifications();Alternatives
Packages that do the same job and could replace push.
- firebase_messaging
If you want standard Firebase messaging support across all platforms and do not mind using Firebase on iOS.
99Compare
Works with
Packages commonly used together with push: ones it builds on, ones built on it, and its own family.