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
- relates to
-
AEROGEAR-4678 Remove SimplePushEndpoint References in docs and examples
- Resolved