When using the AeroGear.js file within Cordova (for device registration), a little hack is needed to get the "DeviceToken" registered:
var tokenContainer = {}; tokenContainer.channelID = deviceToken; // or = regID; on Android.....
Would be nice if the registerWithPushServer() was a bit more flexible