azure_notification_hub_new
is a Flutter package designed to seamlessly integrate with Azure Notification Hub. It simplifies the process of handling push notifications in Flutter applications. With this package, you can efficiently receive and process notifications.
To use azure_notification_hub_new
, add the following to your pubspec.yaml
file:
dependencies:
azure_notification_hub_new: ^0.0.6
Then import the package in your code:
import 'package:azure_notification_hub_new/azure_notification_hub_new.dart';
AzureNotificationHubNew azureNotificationHubNew = AzureNotificationHubNew();
azureNotificationHubNew.configure(
onLaunch: (Map<String, dynamic> message) async {
print('onLaunch: $message');
},
onResume: (Map<String, dynamic> message) async {
print('onResume: $message');
},
onMessage: (Map<String, dynamic> message) async {
print('onMessage: $message');
},
);
To use azure_notification_hub_new
in your Flutter project, add the following dependency to your pubspec.yaml
file:
dependencies:
azure_notification_hub_new: ^0.0.6