You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
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);
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?
The text was updated successfully, but these errors were encountered: