az_notification_hub
2.1.0, released 3 months ago by tangrainc.com
Flutter plugin for Azure Notification Hubs cross-platform push messaging.
What it does
Allows Flutter apps to integrate with Microsoft Azure Notification Hubs for sending push notifications across Android and iOS platforms. It provides methods for initialization, managing tags, templates, background messaging, and handling app opens from notifications.
AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using Microsoft Azure Notification Hubs as your push notification backend.
- You need cross-platform push notifications with template support for Android and iOS.
Skip it when
- You are using Firebase Cloud Messaging directly without Azure Notification Hubs.
- You only require local notifications.
Strengths
- Supports cross-platform template definitions.
- Provides stream-based foreground message handling and background handlers.
Weaknesses
- Requires native configuration on both Android (Firebase/Google Services) and iOS (Push Notifications and Background Modes capability).
- Only supports setting a single hardcoded template name by default.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 2
Requires setting up Azure Notification Hub and Firebase (for Android), adding Google Services plugin, configuring AndroidManifest.xml and Info.plist, and enabling capabilities in Xcode for iOS.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await AzureNotificationHub.instance.start();
runApp(const MyApp());
}Alternatives
Packages that do the same job and could replace az_notification_hub.
- firebase_messaging
If you want to use Firebase Cloud Messaging directly instead of routing through Azure Notification Hubs.
99Compare - onesignal_flutter
If you prefer OneSignal as your push notification provider instead of Azure.
82Compare
Works with
Packages commonly used together with az_notification_hub: ones it builds on, ones built on it, and its own family.