0

I'm using Notification Hubs with the Windows Azure Service Bus .NET SDK version 2.2.4. I'm creating a templated MPNS registration like this:

var reg = await _hub.CreateMpnsTemplateRegistrationAsync(deviceToken, MPNS_TILE_TEMPLATE);
reg.TemplateName = "tile";
await _hub.UpdateRegistrationAsync(reg);

var theReg = await _hub.GetRegistrationAsync<MpnsTemplateRegistrationDescription>(reg.RegistrationId);
var tn = theReg.TemplateName; // this is null

However, TemplateName is always null.

Also, it appears that the TemplateName property is, itself, undocumented in the MSDN reference docs, except for on the "Registration Management" overview page: http://msdn.microsoft.com/en-us/library/windowsazure/dn530747.aspx

Any ideas? thanks Kris

krisdyson
  • 3,217
  • 7
  • 43
  • 86

1 Answers1

0

This is a bug in .NET SDK. A bugfix has been release in version 2.2.6.

http://www.nuget.org/packages/WindowsAzure.ServiceBus/2.2.6

Elio Damaggio
  • 862
  • 4
  • 6
  • Thanks. You guys have lots of documentation about developing mobile apps with Push notifications using Sencha and Cordova. Cordova does not really work. The PushPlugin is not supported in Windows Phone. All kinds of other Cordova issues too. Thought I'd let you know. Thx – krisdyson Feb 06 '14 at 08:40
  • We are already working to improve the integration with Cordova. We will have much better support soon. – Elio Damaggio Feb 14 '14 at 18:54
  • I recommend anyone who goes near Cordova to thoroughly check out the quality of it before diving in. It's been appalling for me and ill-documented. For example, on iOS, check out the status bar plugin for iOS, then put focus in a textbox, then put focus somewhere else outside the textbox. The UI shifts -20px on y-axis, then eventually corrects after a while. This is one example or many other problems. I'm surprised anyone is wasting their time with this. We wasted £8,000 and 5 weeks before going completely native. – krisdyson Feb 16 '14 at 14:56