|
Today the JS registration for SP clients looks like:
...
var metadata = {
deviceToken: mailEndpoint.channelID,
simplePushEndpoint: mailEndpoint.pushEndpoint,
alias: "john",
categories: ["mail"]
};
...
settings.metadata = metadata;
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;
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
|