Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228653

Ionic Push can't have Android and iOS device tokens for one user

$
0
0

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?


Viewing all articles
Browse latest Browse all 228653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>