Ionic Push - device token not saved to $ionicUser

I have push notifications working, the only problem is that the device token is not being saved to $ionicUser:

In the sample code, $scope.pushRegister registers the user, and uses a promise for the device token that doesn’t do anything:

.then(function(deviceToken) {

I’ve tried adding: $ionicUser.set(‘device_token’, deviceToken); but that is a custom field, not the on e Ionic uses.

Anybody know how to save device token to $ionicUser?

Check out the IO gitter room if you’re having issues with push

I have the same problem.

how could we save the device-token to ionicUser? there’s no sample code on the docs.