save custom user data


Hey I actually posted this on Stack Overflow and realized this is a better forum.

I’m new to Ionic and the apps.ionic platform and looking to save some custom user data, it is working via local storage, IE after logging the user in, I can do something like this:

var user = Ionic.User.current();
user.set('address', '1600 Pennsylvania Avenue');;

Now on a future load I can do this:

var user = Ionic.User.current();
var address= user.get('address');

This works, my problem is this data is not saved in the custom data section of the user on, and therefore is not saved cross device. I scoured the docs but did not see specifically how to setup this custom data, I’m probably missing something simple.

Thanks in advance here’s the stack overflow duplicate: