Releases: Azure/azure-notificationhubs-dotnet
Azure Notification Hubs 4.1.1
Microsoft.Azure.NotificationHubs 4.1.0
Today we release the Azure Notification Hubs SDK for .NET version 4.1 with some new features.
New Features
There are some new features in this release including:
- Push to User
Push to User
With the Installation API we now have a new feature that allows you to associate a user ID with an installation and then be able to target it with a send to all devices for that user. To set the user ID for the installation, set the UserId
property of the Installation
.
var installation = new Installation();
installation.UserId = "user1234";
await hub.CreateOrUpdateInstallationAsync(installation);
The user can then be targeted to send a notification with the tag format of $UserId:{USER_ID}
, for example like the following:
var jsonPayload = "{\"aps\":{\"alert\":\"Notification Hub test notification\"}}";
var tags = new string [] { "$UserId:user1234" };
var notificationOutcome = await hub.SendAppleNativeNotificationAsync(jsonPayload, tags);
Bug Fixes
- #155 Fix
Content-Type
for each Notification Type
Microsoft.Azure.NotificationHubs 4.0.0
- Reintroduced NamespaceManager for hub management within a namespace
- Added retry policy and support for throttling status codes
- Added separate targets for netstandard2.0 and net461
- Removed deprecated methods
- Updated nuget dependencies
Microsoft.Azure.NotificationHubs 4.0.0-preview3
Introducing the Azure Notification Hubs .NET SDK 4.0.0-preview3
- Adding built-in retry policy
Microsoft.Azure.NotificationHubs 4.0.0-preview2
Introducing the Azure Notification Hubs .NET SDK 4.0.0-preview2
- Reintroduces NamespaceManager for hub management within a namespace
- Targets frameworks netstandard2.0 and net461
- Additional cleanup and removal of some deprecated methods
- Update nuget dependencies
Microsoft.Azure.NotificationHubs 4.0.0-preview1
Introducing the Azure Notification Hubs .NET SDK 4.0.0-preview1
- Reintroduces NamespaceManager for hub management within a namespace
- Targets frameworks netstandard2.0 and net461
- Additional cleanup and removal of some deprecated methods
- Update nuget dependencies
Microsoft.Azure.NotificationHubs 3.3.0
- Added method overloads that accept the 'CancellationToken' parameter
- Updated documentation for the 'NotificationOutcome' class
Microsoft.Azure.NotificationHubs 3.2.1
- Fixed bug with Strong Name Verification
Microsoft.Azure.NotificationHubs 3.2.0
- Added Baidu platform to Installations
- Bug Fixes
Microsoft.Azure.NotificationHubs 3.1.0
Fixed serialization for registration description