34 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 7
4 star 7
3 star 8
2 star 2
1 star 10
Compatible with
  • Android
  • iOS

Azure Messaging 1.2.5.2

Xamarin Inc.

Send Push Notifications to your iOS and Android apps

Windows Azure Messaging with Xamarin.iOS and Xamarin.Android allows you to register your apps with Azure Notification Hubs.

Notification Hubs provide a highly scalable, cross-platform push notification infrastructure that enables you to either broadcast push notifications to millions of users at once or tailor notifications to individual users.

On every mobile platform, push notifications are a critical element of any application. Push Notifications are simply the most immediate means through which to engage and empower your users. Building and maintaining the infrastructure for a push notification system capable of reaching millions of users within minutes, however, is far from simple. On your own, delivering millions of push notifications within minutes would require tens of virtual machines running in parallel. We created Notification Hubs to give developers an easy and reliable way to reach their users on any platform and from any connected application backend.

Getting the Samples to work

It's important to note that out of the box, these samples cannot just work. You must first follow the steps for each specific platform in the Getting Started guide to setup an Azure Mobile Services instance, as Apple Push Notifications and/or Google Cloud messaging for your app, and configuring your Azure Mobile Services instance to work with each platform. If you do not follow this setup, you will see NotImplementedException exceptions raised.

Broadcast cross-platform push notifications to millions of devices in minutes

Notification Hubs supply a common API to send push notifications to a variety of mobile platforms, including Windows Store, Windows Phone, iOS and Android. You can choose to send platform-specific notifications or broadcast a single platform-agnostic notification to all users. A few lines of code gives you the power to reach either all devices on a single platform or all iOS, Android and Windows devices at once.

Notification Hubs send out push notifications to millions of users within minutes, not hours. That makes this service a particularly good partner for when speed matters most—such as with breaking news.

Send notifications from any backend

Notification Hubs can be used with any connected application—whether it’s built on Virtual Machines, Cloud Services, Web Sites, or Mobile Services. This makes it easy to update any of your mobile apps right away and start engaging your users on their terms.

Target content to specific user segments

With Notification Hubs, you not only have the ability to broadcast notifications to all your users at once (regardless of their mobile platform). You also have the ability to subscribe users to any number of tags when you register them with a Notification Hub. Those tags give you an easy way to define and target user segments based on activity, interests, location, etc. with a single API call. By using those tags effectively, you never have to store and mange device tokens or Ids in your app’s backend in order to route notifications to particular users.

Use templates to tailor each user’s notifications

Templates provide a way for developers to specify the exact format of the notification that each user receives based on each of their preferences. By using templates, there is no need to store the localization settings for each of your customers or to create hundreds of tags. You just need to register the templates that specify the correct language with a Notification Hub and send a single message with all the localized content. Once your Notification Hub receives that single message, it will extract the correct localized message for each targeted user from the message.

Achieve extreme scale

Notification Hubs are optimized for massive scale. With Notification Hubs, you can quickly scale to millions of devices and billions of push notifications without ever having to re-architect or shard your application. The Notification Hub you configure for a given application will automatically handle the pub/sub scale-out infrastructure necessary to scale your message to every active device with incredibly low latency. All it takes is one message from your connect app’s backend to the Notification Hub and millions of push notifications will be fired off to your users.

Notification Hubs are backed by a high availability service level agreement. To start sending push notifications to every user on every device, you will need an Azure account. Sign up for the free trial here.

Release Notes

Updated to newer native Android SDK

Write a Review

18 reviews

Amol Gaikwad rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Component is not installing. throwing error manifest is missing.

Posted on: October 31 / Version: 1.2.5.2
Satya Tanwar rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

not able to install component

Posted on: February 5 / Version: 1.2.5.2
umut aydin rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Azure Notification Hub Unauthorized Exception throwing while phone Language settings is Turkish. You can use ByteSmith.WindowsAzure.Messaging.Android.dll instead.

Posted on: December 21, 2016 / Version: 1.2.5.2
Alessandro Colamarino rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

downloaded sample, restored packages, built, does not even compile

Posted on: November 6, 2016 / Version: 1.2.5.2
Shankar Mohanakrishnan rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Hi ,

I am using this dll version Xamarin.Azure.NotificationHubs.iOS.1.2.5.2\lib\Xamarin.iOS10\Xamarin.Azure.NotificationHubs.iOS.dll. My Xamarin ios App is crashing If I use this class instance SBNotificationHub.
Anyone has any idea about this. Let me know . thanks

Posted on: October 3, 2016 / Version: 1.2.5.2
Stephen Wilkinson rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

I had these problems - filed a support request and Bill fixed this right up in an hour. 1.2.5.1 works for me now.

Hey Xamarin - please don't point the "website" link at generic microsoft azure site - point it where the source/github/docs are ( https://github.com/xamarin/XamarinComponents )

Posted on: September 15, 2016 / Version: 1.2.5.0
Stavros Menegos

Error adding to project: Cannot get libraries from incompatible component.

Version 1.2.5.0

19 days and still this severe issue has not been resolved. This is not the Xamarin we knew and we trusted for so many years...

Posted on: September 13, 2016 / Version: 1.2.5.0
Arthur Kater

Error adding to project: Cannot get libraries from incompatible component.

Version 1.2.5.0

Ever heard about testing???

Posted on: September 12, 2016 / Version: 1.1.5.6
Patrick Sullivan

Error adding to project: Cannot get libraries from incompatible component.

Version 1.2.5.0....

Posted on: September 6, 2016 / Version: 1.2.5.0
Brian Repetti

I get an error "Cannot get libraries from incompatible component". Please fix.

Posted on: August 30, 2016 / Version: 1.2.5.0
Alex Reyes

Error adding to project: Cannot get libraries from incompatible component.

Posted on: August 29, 2016 / Version: 1.2.5.0
gökhan ikisivri rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

I'm getting exception always "UnauthorizedException". My device turkish language.

Posted on: August 24, 2016 / Version: 1.1.5.6
Mark Murphy rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

On the "Attempt to invoke virtual method 'int java.lang.String.length()' exception I found I made an error setting my ListenConnectionString = @"Endpoint=sb://......." . Initially "Endpoint=" was missing. When I corrected it it worked.

Posted on: June 21, 2016 / Version: 1.1.5.6
Pubudu Gayan

Tried this application and configured but its not reciing any notofocations

Posted on: May 25, 2016 / Version: 1.1.5.6
Mohamed Infaaz

Hi All,

I have tried azure messaging component. when I run the android app, it is getting register with GCM. But not getting register with "Azure notification hub". One exception is coming on this point, var hubRegistration =Hub.Register(registrationId,tags.ToArray());

Exception message : "Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference" string

Android version : 5.0 xamarin version : 5.10.3 (build 51)

If you can help, it is much appreciated !!!

Posted on: May 19, 2016 / Version: 1.1.5.6
Simon Waight rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Just a heads up that the "expiryTemplate" argument for the RegisterTemplate / RegisterTemplateAsync methods for iOS is actually "Expiry Time" which is a DateTime object in EN US format. See Mads post from June 2014 (this is still the case in 2016...)

Posted on: April 8, 2016 / Version: 1.1.5.6
Mads Laumann rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

Works great for NativeNotifications, but not for TemplatedNotifications - see my thread here.

http://forums.xamarin.com/discussion/18683/azure-messaging-registertemplateasync-isn-t-working

Posted on: June 18, 2014 / Version: 1.1.5
Franco Obet Rivera Barajas rates this with
  • 1
  • 2
  • 3
  • 4
  • 5

EDIT: I solved the problem, lowercase package name, now works great!!!

Ok, i downloaded the example and works fine with the included sample project, but when i want to add this component to my project simply doesn't works, it throws:

Installing application on device

Deployment failed because of an internal error: Unexpected install output: pkg: /data/local/tmp/IssstecaliDiabetes.IssstecaliDiabetes-Signed.apk Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

Deployment failed. Internal error.

Here is my manifest, any help it will be very appreciated. http://pastebin.com/tYWEkcfh

Posted on: May 26, 2014 / Version: 1.1.5