I have push notifications working, the only problem is that the device token is not being saved to $ionicUser: http://cl.ly/image/45051z0R1g0o
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?