Completely new to Ionic. Have my app running well so far and am currently testing push on my iOS device.
My question is - every time I quit and reopen the app do I have to register the device for a new push token? Currently when a user logs in I register the device and get a token which is saved in my db.
My testing went as follows:
- Login, get token
- Sent push with app open - received.
- Sent push with app in background - received.
- Sent push with app closed - received.
- Re-opened app and sent push - not received.
From this I would assume every time the app runs I should check if a user is logged in and generate and update the token, but I want to be sure I’m not doing this unnecessarily as this is all very new to me.