Skip to content

Commit

Permalink
Removed template registration from push registration, not required at…
Browse files Browse the repository at this point in the history
… this point.
  • Loading branch information
jsiegmund committed Aug 10, 2016
1 parent 49e3724 commit 16b0ed8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Mobile/MobileApp/scripts/services/mobileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,8 @@
if (this.mobileServiceClient) {
console.log("registering with Azure for GCM notifications");
var deviceTag = "deviceid:" + this.sharedService.settings.getDeviceId();
var template = '{ "mytemplate" : { "body": { "data" : { "message" : "$(message)" } }, "headers" : [], "tags" : ["' + deviceTag + '"] } }';
// var template = '{ "data" : {"message":"$(message)", "id": "$(id)", "title": "$(title)"}}';
// var template = '{ "data" : { "message" : "$(message)", "tags" : ["' + deviceTag + '"] } }';

//var hub = new WindowsAzure.NotificationHub(this.mobileServiceClient);


this.mobileServiceClient.push.register('gcm', this.registrationId, template, null, this.registrationCallback);
this.mobileServiceClient.push.register('gcm', this.registrationId, null, null, this.registrationCallback);
console.log('mobile service push registered with tag ' + deviceTag);

this.updateNotificationRegistration(this.registrationId);
Expand Down

0 comments on commit 16b0ed8

Please sign in to comment.