Struggling with Ionic Push


I want to use Ionic Push as the push service for the app i’m building…

I’ve already set up my GCM account and key, but the thing is, I just want to use the push service of ionic to generate device tokens on login, and update them in my user model in the backend which is already running fine.

So imo i have no need for also using Ionic User for the registration of accounts.

Can someone show me a clear example of how to do this in production?
Or can someone tell me where to store the device tokens or when to register new device tokens as im not sure if the approach i’m thinking of is correct…

At first i was thinking to only register device tokens on signup, but users have to get new tokens when signing into other devices.

Could someone please show or explain me?