Simple cross platform plugin to configure Azure's NotificationHubs in your Xamarin (Forms) project.
- Available on NuGet: http://www.nuget.org/packages/Xam.Plugin.NotificationHub
- Install into your PCL project and Client projects.
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, callCrossNotificationHub.Current.Register
with your NotificationHub name, connection string, the device token (provided byOnRegistered
) 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.