A push registration for a device consists of several system parameters, including the push token, and may include custom parameters that you supply. To ensure that these fields are always up to date, it is recommended to update the device registration periodically.
To following code updates all registration parameters, including system and custom parameters:
var el = new Everlive('your-app-id'); el.push.updateRegistration(customParameters, successCallback, errorCallback);
To update only the system parameters, supply null for the
updateRegistration()requires a push token to be already present on the device. If you have already called
register(), the push token will be present. If not, call
register()will create it.