I have managed to setup my Ionic app so that when a user logs in, it stores their Android device tokens, or iOS device tokens on ionic.io with their user id attached.
My problem is that when I open the app on the opposite device, it overwrites the existing token. So if I initially login on an iPhone, it will save that token and push notifications work fine. If I then login with an Android phone, it overwrites the existing iOS device token, and push notifications will only work on Android.
Is it possible to store both tokens at once?