Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-6808

Remove simplePushEndpoint from JS docs/examples

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • None

    Description

      Today the JS registration for SP clients looks like:

      ...
       var metadata = {
          deviceToken: mailEndpoint.channelID,
          simplePushEndpoint: mailEndpoint.pushEndpoint,
          alias: "john",
          categories: ["mail"]
      };
      ...
      settings.metadata = metadata;
      
      // register with the server
      UPClient.registerWithPushServer(settings);
      

      However, we no longer expose (see thread ROOT ticket) the channelID, and use the URL from the 'pushEndpoint' as the device token.

      The examples/tests need to be udpated to contain something like this:

      ...
       var metadata = {
          deviceToken: mailEndpoint.pushEndpoint,
          alias: "john",
          categories: ["mail"]
      };
      ...
      settings.metadata = metadata;
      
      // register with the server
      UPClient.registerWithPushServer(settings);
      

      On the actual JS library (https://github.com/aerogear/aerogear-js/blob/master/src/unifiedpush/aerogear.unifiedpush.js) the documentation/example needs to be udpated as well.

      For the unregister, Luke mentioned on the ML he had to use something like this:
      https://gist.github.com/lholmquist/10393357

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mwessend@redhat.com Matthias Wessendorf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: