Hi, I'm building notification functions on my AngularJS app with Ionic. I see a strange thing.
If I use the template registration to Notifiction Hub , like your code, I'm not able to receive notifications. I'm always registered on hub and GCM.
// Create the integrated Notification Hub client.
var hub = new NotificationHub(mobileClient);
// Template registration.
var template = "{ "data" : {"message":"$(message)"}}";
//Register for notifications.
// (gcmRegId, ["tag1","tag2"], templateName, templateBody)
hub.gcm.register(e.regid, null, "myTemplate", template).done(function () {
Instead, to receive the notifications, I need to remove template and call: hub.gcm.register(e.regid).done(function () {
Why?