- Tagging and dynamic tagging
- Registering templates
- Routing notifications
- Working with the message center
- Coordinating communication
Skill Level Intermediate
- There's no doubt at this point in our mastering series that push notifications provide a powerful mechanism for communicating with users. Especially combined with the power of Xamarin Forms where push notifications can easily be received by users whether they choose an Android, iOS, or Windows device. But when most developers think about push notifications they mostly think about simple ideas like sending toast, tile, alert, and badge updates. But these type of notifications are really just the tip of the iceberg. By combining the power of Xamarin Forms with backend services like Azure Notification Hubs developers can create robust communication mechanisms supporting rich, targeted and even broadcasted device to device in app communications.
I'm Scott J. Peterson and this is Mastering Xamarin Forms Development Advanced Push Notifications. Quite honestly, although this is a Mastering Xamarin Forms development series much of the magic of push notifications would not be possible without cool third party services like Azure Notification Hubs. But the Xamarin Forms platform brings a lot to the table when it comes to this type of integration. Integration for registration, tagging, and broadcast services. Including things like the Xamarin Forms message center which enables shared platform messaging via a publish and subscribe model to easily perform real time in app notifications interactions for Android, iOS, and Windows devices.
The combination of Xamarin Forms and things like Azure Notification Hubs really provide the magic that we're going to take a look at in this session. So let's take a look at what we're going to cover. As always we're going to be spending most of our time in Visual Studio 2017 in our Xamarin Forms cross platform news reader app Paperboy that we've been working on in this series. But specifically we're going to talk about some advanced push notification concepts and things like tagging and templates. There's a little bit of confusion around tagging especially with the migration from Azure mobile services to Azure mobile apps when it comes to the ability to tag.
We're going to talk about the idea of pre-provisioned tagging as well as dynamic tagging. This is an area where the documentation is often confusing because the documentation for Notification Hubs explicit says tags do not need to be pre-provisioned, meaning we don't have to create tags up front that are going to be targeted. But that's not necessarily true when it comes to interacting with the SDK and API's. So we're going to talk about the differences between pre-provisioned tagging and dynamic tagging and then we're going to go into our Xamarin Forms Paperboy app and add tagging support.
Then we're going to talk about the concept of templates, something that we looked at earlier in our original push notifications session. Talk about how we can really leverage the power of templates and registering variations of templates so that we can take advantage of platform specific push notifications in a generic way. Then we're going to flip back over into Visual Studio and take a look at working with dynamic tagging. Then we're going to finish up with a cool concept in Xamarin Forms development. This idea of routing notifications in the message center and really coordinating communication between the receipt of push notification messages and communicating with our app.
And then we'll flip back over to Visual Studio one more time and we'll put all these pieces together to add some cool functionality in our app. And as always, we'll finish up with some great next steps.