Skip to content
This repository was archived by the owner on Oct 27, 2020. It is now read-only.

NotificationHub.js : registration template issue #28

@biapar

Description

@biapar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions