Skip to content

saadfarooq/NotificationHubPlugin

Repository files navigation

Azure NotificationHubs Plugin for Xamarin and Windows

Simple cross platform plugin to configure Azure's NotificationHubs in your Xamarin (Forms) project.

Setup

Build status

API Usage

Note: This plugin is designed to work with the excellent Push Notification Plugin for Xamarin

  • Follow the instructions for setting up the push notification listener from the Push Notification Plugin.
  • In the OnRegistered method of the push notification listener, call CrossNotificationHub.Current.Register with your NotificationHub name, connection string, the device token (provided by OnRegistered) and any tags.
  • And that's it. You should be able to get push notifications sent from your Azure NotificationHub now in the same push notification listener.
  • To unregister, just call CrossNotificationHub.Current.Unregister()

See the sample project for an implementation.